Reply To: using indesign menu select all then object pathfinder intersect using script

Home Page / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / using indesign menu select all then object pathfinder intersect using script / Reply To: using indesign menu select all then object pathfinder intersect using script

#85753
Matt Isaac
Participant

I am trying to use the subtract option with two objects. My current script code is:

function main(){
var mySelections = app.selection;
var bottomObject = mySelections[0];
var cutLine = mySelections[1];
var topObject = bottomObject.duplicate();
var topPath = topObject && cutLine;
}
 

Which works to duplicate the bottom object but now i need to use the subtract pathfinder option for the topObject and cutLine (topPath). I am trying to script a solution for my post in https://creativepro.com/topic/cut-photo-in-half-along-curved-path

I tried using your bit of code in my script changing a few things to topPath[0].subtractPath(topPath); but it didn’t work.
maybe you can once again improve upon my idea =).

This article was last modified on June 14, 2016

Comments (0)

Loading comments...