Spot color creation in Photoshop CS6, javascript
Hi,
I need to create spot channel value: CMYK: 50:0:0:0, at 50% solidity, named 'hpWhite' in Photoshop CS6, javascript.
How can I do it?
Thank you.
Yulia
Hi,
I need to create spot channel value: CMYK: 50:0:0:0, at 50% solidity, named 'hpWhite' in Photoshop CS6, javascript.
How can I do it?
Thank you.
Yulia
Record the creation with ScriptingListener.plugin and use the resulting code.
If you prefer to use DOM code
#target photoshop
var myDoc = activeDocument;
var theColor = new SolidColor();
theColor.cmyk.cyan = 50;
theColor.cmyk.magenta = 0;
theColor.cmyk.yellow = 0;
theColor.cmyk.black = 0;
var theCh = myDoc.channels.add();
theCh.kind = ChannelType.SPOTCOLOR;
theCh.name = "test";
theCh.opacity = 50;
theCh.color = theColor;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.