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

Minus Front in Pathfinder with Extendscript

Explorer ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

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

Views

480

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

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');

Votes

Translate

Translate
Adobe
Guide ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

app.executeMenuCommand("Live Pathfinder Subtract");

 

Group the pathItems first.

Votes

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

Copy link to clipboard

Copied

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.

Votes

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

Copy link to clipboard

Copied

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.  

Votes

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

Copy link to clipboard

Copied

Hi,

Try following snippet

app.executeMenuCommand('group');
app.executeMenuCommand('Live Pathfinder Subtract');
app.executeMenuCommand('expandStyle');
app.executeMenuCommand('ungroup');
Best regards

Votes

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

Copy link to clipboard

Copied

Works perfectly. Thank you!

Votes

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