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)
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)