How can I select all paths with fill black 100% and remove them?
I tried the "script" below, but it doesn't give faults and the result stays the same (-> no remove of the items)
#target illustrator
var docRef=app.activeDocument;
for(i=0;i<docRef.pageItems.length; i++ ) {
var pathRef = docRef.pageItems[i];
if (pathRef.fillColor.black == 100) {
pathRef.selected = true;
pathRef.remove(i);
};
};
I also tried: pathRef.remove(); but also here, the result is the same....