Scriptographer.org - document.getItems

Sg 2.9
document.getItems
Recent RSS
About
News
Gallery
Scripts
Tutorials
Download
Reference
Forum
Users
License
Twitter
document.getItems
From: RayM
Date: 23. July 2014, 11:48

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.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
Script of the Moment
Variator 08.01.12

AltStyle によって変換されたページ (->オリジナル) /