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

Re: And or statements

$
0
0

Thanks guys, I really appreciate it. Its so cool how much you can do with scripting. I went with this one

 

var docRef = app.activeDocument;

var CC = app.activeDocument.swatches.getByName ("CutContour").color;

 

for(i = docRef.pathItems.length-1; i >= 0; i--)

if(docRef.pathItems[i].strokeColor = CC )  { 

    if(docRef.pathItems[i].width < 7 || docRef.pathItems[i].height < 7)  { 

       

docRef.pathItems[i].remove();

}

}

 

Seems to work fine with the one equal sign. I tried with two and it didn't work, or maybe I screwed something else up that I didn't notice haha. But I tested this one several times and It worked flawlessly. Thanks again!!


Viewing all articles
Browse latest Browse all 92756

Trending Articles



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