: Calling Pathfinder Divide through JavaScript in Illustrator? How do I call Window → Pathfinder → Divide through JavaScript in Illustrator? If not, can I call an action that pushes this
How do I call Window → Pathfinder → Divide through JavaScript in Illustrator? If not, can I call an action that pushes this button through javascript?
More posts by @Kaufman565
3 Comments
Sorted by latest first Latest Oldest Best
Yea, you can have a previously recorded (or dynamically written too) action that does the pathfinder operation and then it's as simple as doing app.doScript(actionName, setName)
Use this code to apply Divide Effect. Please note that the effect must be applied to groups.
to group selected items, use
app.executeMenuCommand('group');
to apply the Divide effect to a selected group, use
app.executeMenuCommand('Live Pathfinder Divide');
if you need to expand appearance, use
app.executeMenuCommand('expandStyle');
Elmentary you can not. Tough you can kludge your way trough the system and call a action that has been recorded to use pathfinder. The scripting interface of Illustrator is pretty limited in scope.
The extendscript that comes with Adobe apps can not call the windowing subsystem to press buttons. NodeJS could be made to do that tough but then that wouldnt be a simple script.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.