ai script – select all objects on an Artboard but just from one Layer?
might be an easy one but I'm stuck here:
I want to select all Objects on one Artboard but only those from one exact Layer.
Details:
Using JavaScript I'm able to select all Objects on a specific Artboard.
Now is it possible to select everything from that Artboard being on specific Layer?
This might be one of many Layers.
Each Layer might contain Objects to be spread all over other Artboards...
Setting:
Multiple Artboards
Multiple Layers
Multiple Objects randomly on Layers/Artboards
Basic Script:
for(var a=0; a<artboardRef.length; a++){
docRef.artboards.setActiveArtboardIndex(a);
docRef.selectObjectsOnActiveArtboard();
}
Thanks
Nils
