Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

removing paths

$
0
0

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....


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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