Highlighted

How to reference which artboard a shape is on?

Contributor ,
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?

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)

 

Topics

Scripting

Views

187

Likes

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

How to reference which artboard a shape is on?

Contributor ,
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?

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)

 

Topics

Scripting

Views

188

Likes

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
Contributor ,
Jun 04, 2020

Copy link to clipboard

Copied

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)

 

Likes

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
Reply
Loading...