Hey all,
Has anyone of you had any luck creating a new swatch with the Swatch() constructor? I keep getting this error:
ReferenceError: "Swatch" is not defined.
Thanks.
Sure you have the latest version of Scripto installed?
The following works for me:
var swatch = new Swatch(); swatch.name = "Reddy" swatch.color = RGBColor(1,0,0) var sL = activeDocument.swatches.length activeDocument.swatches[sL]=swatch;
Hey,
Thanks for the quick reply, I didn't have the latest version (16.02.2007), it works now!
—mooie smiley!