Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Get all PageItems in a layer?

$
0
0

when I ask for all pageItems in a document, like so:

 

app.activeDocument.pathItems

 

I get all the pageItems of the current document, regardless of where they are. But when I ask for al the pageItems of a particular layer

 

app.activeDocument.layers[1].pathItems

 

I only get the pathItems at the top level of the layer. Any pathItems that are buried in a groupItem aren't returned. Is there a way to see all pageItems in a layer whether they're in a group or not?


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>