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

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

New Here ,
May 22, 2024 May 22, 2024

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?Selection.pngexpand imageExpectation.pngexpand image

TOPICS
Scripting
182
Translate
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
Adobe
Community Expert ,
May 22, 2024 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?

Translate
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
New Here ,
May 22, 2024 May 22, 2024
LATEST

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

Translate
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