Skip to main content
Participant
May 22, 2024
Question

Help on Illustrator Script, Create New path object based on selection

  • May 22, 2024
  • 1 reply
  • 262 views

Hi,

i am trying to create a jsx script for illustrator which will create a new compound path base on selection.

i tried to use the app.activeDocument.selection to create the compound path, but some objects are not selected which needs to be extracted from the result. hope the images below is clarifying my request. how can i exclude the non selected objects from the result?

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
May 22, 2024
quote
… how can i exclude the non selected objects from the result?

By @sharose creations

 

Long answer: I'm afraid not at all.
Counter question: How would you solve the task manually?

Participant
May 23, 2024

Hi, currently i am doing this by selecting each elements 1 by 1 and use the pathfinder to substract.