Parsing only visible path items
Hello World!
I am currently working on a script which is parsing all the page items on artwork .
Everything seem perfectly fine, except for the left over path items.
Lets say, I have already succed to parse and hide, for eg. compound path items, raster items, text frames, and so on. The only things left are the simple path items.
We all know that path items, can be a part of compound path, but these ones we have already sorted out including their subpath items, so some of them are already !editable / !visible.
paths = activeDocument.pathItems;
for (index = 0; index < paths.length; index++) {
if (paths[index].editable) {
...
}
}
The simple way of parsing so many path items as shown above is taking a lot, lot of time.
In compare to checking for all other types of objects, it is like 90% of time required to execute the script, and thats no good.
I dont want to parse as much as like 15-25k paths in order to check if some of them are still visible or editable, and my question is:
Is there any other way to get a collection of visible paths items only?
Thanks in advance,
Igor
