Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 93817

Re: How to delete a path item from within a group item?

$
0
0

#target illustrator

 

var doc = app.activeDocument;

 

alert( doc.pathItems.length ); // All document paths

 

alert( doc.groupItems[0].pathItems.length ); // Just the target group paths

 

alert( doc.pathItems.length - doc.groupItems[0].pathItems.length ); // The rest…

 

var count = doc.groupItems[0].pathItems.length;

 

for ( var i = 0; i < count; i++ ) {

 

  doc.selection = doc.groupItems[0].pathItems[i];

 

  $.sleep( 500 );

 

  app.redraw();

 

};

 

Just target the required groupItem…? As you can see from this you can isolate any objects within the doc… Should be exactly the same in VB…?


Viewing all articles
Browse latest Browse all 93817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>