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

Minus Front in Pathfinder with Extendscript

Explorer ,
Oct 22, 2020 Oct 22, 2020

Using Extendscript, I'm trying to automate a process that includes the use of the Pathfinder tool, specifically Minus Front. The issue is that Minus Front doesn't exist amongst the list of executable commands even though the majority of the other options do.

 

Here's the list: https://ten-artai.com/illustrator-ccver-22-menu-commands-list/

 

Searching for pathfinder shows that all the options exist except Minus Front. This means I'm trying to find a workaround with Minus Back instead, but I can't seem to get it to work either.

 

How do I effectively get Minus Front automated via Extendscript?

 

Thanks.

TOPICS
Feature request , Scripting
783
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

correct answers 1 Correct answer

Community Expert , Oct 22, 2020 Oct 22, 2020

Hi,

Try following snippet

app.executeMenuCommand('group');
app.executeMenuCommand('Live Pathfinder Subtract');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('ungroup');
Translate
Adobe
Guide ,
Oct 22, 2020 Oct 22, 2020
app.executeMenuCommand("Live Pathfinder Subtract");

 

Group the pathItems first.

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
Explorer ,
Oct 29, 2020 Oct 29, 2020

This works visually but doesn't actually cut out the paths themselves - not that I specified that as a need in my original post. The other reply here seems to work best in this case by solving that problem as well.

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
Guide ,
Oct 29, 2020 Oct 29, 2020
LATEST

Yes, this corresponds to the pathfinder effect in the effect menu and applies an effect, an appearance attribute, which would then need expanding.  There is no counterpart to the pathfinder panel in ExtendScript.  

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
Community Expert ,
Oct 22, 2020 Oct 22, 2020

Hi,

Try following snippet

app.executeMenuCommand('group');
app.executeMenuCommand('Live Pathfinder Subtract');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('ungroup');
Best regards
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
Explorer ,
Oct 29, 2020 Oct 29, 2020

Works perfectly. Thank you!

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