Quantcast
Viewing all articles
Browse latest Browse all 90000

Re: Trying to delete everything without a stoke or fill

Hi djbgraphicdesign,

in your example pathItem is not defined. Please use doc.pathItems[counter] instead.

 

var doc = app.activeDocument;
for(i = doc.pathItems.length-1; i >= 0; i--){
if(doc.pathItems[i].filled == false && doc.pathItems[i].stroked == false)
{  alert("Found " + doc.pathItems[i] + " i");  doc.pathItems[i].remove();
}
}

 

 

This should do the job.

(You can also use a variable for doc.pathItems and use this variable instead.)

 

Have fun

 


Viewing all articles
Browse latest Browse all 90000

Trending Articles