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

Compound Shape - JS

Explorer ,
Oct 18, 2016 Oct 18, 2016

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!

TOPICS
Scripting
399
Translate
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
Adobe
Engaged ,
Oct 18, 2016 Oct 18, 2016

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.

Translate
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
Valorous Hero ,
Oct 18, 2016 Oct 18, 2016
LATEST

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.

2016-10-18 15_50_08-.png

Translate
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