• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Script for selecting all objects on a specific layer, do a pathfinder action and recolor everything

New Here ,
Jul 10, 2024 Jul 10, 2024

Copy link to clipboard

Copied

Hello everyone,

 

I need your help in creating a script.
The script should execute the following:

 

1. select everything and set the outlines to 0.5 pt and 100 K (CMYK).
2. select all objects from a specific layer.
3. pathfinder exclude
4. fill the selection with a specific colour field from the colour palette

 

Ideally, steps 2-4 can be used for several layers with different names and required colours. If a layer does not exist, the script should continue to run.

 

I have already been able to find the following commands, but always get a PARM error.

app.activeDocument.layers["Aluminium-Contour"].hasSelectedArtwork = true;
app.executeMenuCommand("Exclude");

 

Thank you very much!

 

Regards
Marc

 

TOPICS
How-to , Scripting

Views

35

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe