var doc=activeDocument; var sel = doc.selection; var len = sel.length; while(len--) { if(sel[len].typename ==="CompoundPathItem"){ sel[len].selected=false; } } alert("Only non-compound items are selected.");
It should work for all versions of illustrator, and can easily be modified to other object types.
enjoy!
-J
1 comment:
Post a Comment