Question
SolidColor and Units is undefined
Hi,
I'm new to ps scripting and struggling with an issue for following code:
SolidColor.prototype._toString = function() {
var c = this;
var m = c.model.toString().match(/\.(\w+)$/);
var model = m[1];
return "{ " + model + ": [" + c._toBytes() + "]}";
};
While running this in AI it throws error:
SolidColor is undefined
Any idea why?