Copy link to clipboard
Copied
Hi guys
Is there a way to select all objects with the same color
and do compound shape with these objects using JS?
Many thanks for your help! ![]()
Copy link to clipboard
Copied
If is very simple, something like that (CS6+):
executeMenuCommand('Find Fill Color menu item');
executeMenuCommand('compoundPath');
Before running the code, it is necessary to select an object with a target fill.
Copy link to clipboard
Copied
If you are looking to do compound shape explicitly, which differs from compound path, you will need to (also using CS6+) record an action making the compound shape and use it in the script.

Get ready! An upgraded Adobe Community experience is coming in January.
Learn more