Answered
Can't get spot color RGB values
Hi all, I have the following snippet. For the else statement I am getting undefined for all values. The path is a PathItem. Any thoughts on where I'm going astray? Thanks.
var rgb = " ;
if (path.fillColor.typename !== "SpotColor") {
if (path.fillColor.typename == "RGBColor") {
rgb = path.fillColor.red + "" + path.fillColor.green + path.fillColor.blue;
}
}
else {
rgb = path.fillColor.spot.spotKind + ":" + path.fillColor.spot.red + "" + path.fillColor.spot.green +
path.fillColor.spot.blue;
}
$.writeln(rgb);

