ideas for updating doc.groupItems.length
I'm trying to detect corrupt compoundPathsItems (those with groupItems within them) I'm asking here before I'm going the SDK route. I've seen different solutions to this here:
Solved: Dealing with Compound Paths made of Groups - Adobe Community - 8826626
My simple idea to do this blazingly fast is to:
1. count doc.groupItem.length
2. duplicate the compoundPathItem
3. check if the doc.groupItem.length has increased.
Simple. The problem is that it ut doesn't update the groupItem count after the duplication. redraw() doesn't have an effect. The only thing I found so far to update the count is to:
item.selected = true; // select something
doc.selection = null; // deselect everythingMaybe you guys have some trix up your sleaves?
Thanks!
