08.08.14, 15:24
When I use getItems like this:
selObjects = document.getItems({
type: [CompoundPath, Path, TextItem, Raster, PlacedFile],
selected: true
})
The selObjects array gets organized by the type attribute. So compound paths end up in front of everything and placed files end up in the back. This causes issues with the stacking of my final product.
What I need is a way to get every object into an array EXCEPT groups. If there are groups, I need their children and if their children are groups, I need those kids instead (etc).
My script doesn't work on groups but works on everything else.