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

How to reference which artboard a shape is on?

Engaged ,
Jun 04, 2020 Jun 04, 2020

Copy link to clipboard

Copied

   I need to either, iterate through each path item on each artboard - OR - iterate through all items but be able to reference the artboard which it is on.  What's the best way to do this?

TOPICS
Scripting

Views

346

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jun 04, 2020 Jun 04, 2020

Document has a method that could help:

app.activeDocument.selectObjectsOnActiveArtboard()

 

Be careful though as it will select any object that insects with the active artboard even if (to our eyes) it properly belongs to another artboard.

 

Also Artboards has a method to use to set the active artboard:

artboards.setActiveArtboardIndex(index)

 

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 04, 2020 Jun 04, 2020

Copy link to clipboard

Copied

LATEST

Document has a method that could help:

app.activeDocument.selectObjectsOnActiveArtboard()

 

Be careful though as it will select any object that insects with the active artboard even if (to our eyes) it properly belongs to another artboard.

 

Also Artboards has a method to use to set the active artboard:

artboards.setActiveArtboardIndex(index)

 

Votes

Translate

Translate

Report

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