This content has been marked as final.
Show 4 replies
-
1. Re: Stroked?
Harbs. Sep 15, 2011 5:38 AM (in response to Muppet Mark)You need to test for BOTH a stroke weight and a color.
if(pi.strokeWeight > 0 && pi.strokeColor != NOCOLOR){
//there's a visible stroke.
}
Harbs
-
2. Re: Stroked?
Muppet Mark Sep 15, 2011 6:52 AM (in response to Harbs.)Harbs, I will check later when back at a CS5 box… as is… NOCOLOR is undefined…
-
3. Re: Stroked?
Harbs. Sep 15, 2011 7:24 AM (in response to Muppet Mark)Sorry for not being clearer...
You need to do something like
var NOCOLOR = doc.swatches.item(0);
I was just writing in shorthand...
-
4. Re: Stroked?
Muppet Mark Sep 15, 2011 7:45 AM (in response to Harbs.)Harbs, thanks I was going to look up a NOCOLOR and how to use it AI has one… So you threw me with that… I should get something workable now…


