Skip to main content
dendenis82
Inspiring
October 13, 2024
Question

Change Path Operations Option(subtract, intersect, exclude) by .jsx script

  • October 13, 2024
  • 1 reply
  • 4581 views

Hi,
I surprised that while it's possible to achive advanced things with .jsx automation I can't still get some simple things. I can't change path operation mode for current shape. Actions does not register any activity while changing path operation modes. I also copied a text from Script Listener, no result.


GPTs uses some  PathOperation.SHAPEXOR currentPath.pathOperation =; PathOperation.SUBTRACT_FRONT_SHAPE , but none of them won't work. 


Does anybody know the workaround?

 

 

[actions and scripting topic added by moderator]

 

 

 

 

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
October 16, 2024

Should be possible with AM code. 

But what are you trying to do axactly? Change the operation for all or only certain subPathItems, to what, …? 

dendenis82
Inspiring
October 16, 2024

I have to add feathered vignette on every document I open. It's black layer masked with shape(Subtract Front Shape mode); Sometimes I change the Outer Glow to have smaller vignette. I tried to automate it. Select all, make path from selection in paths palette, cut/paste in black layer. But it's always uses Combine Shapes mode by default.

dendenis82
Inspiring
October 16, 2024

This is example file.