Copy link to clipboard
Copied
Hello,
I try to modify "global" property of a SwatchColor with script or action but nothing works.
Anyone have an idea ?
Thanks
Sorry,
In fact I found the solution.
I need to create a SpotColor and define properties :
- 'colorType' on ColorModel.SPOT
- 'spotKind' on SpotColorKind.SPOTRGB
And that's work !!! Great !
Copy link to clipboard
Copied
Sorry,
In fact I found the solution.
I need to create a SpotColor and define properties :
- 'colorType' on ColorModel.SPOT
- 'spotKind' on SpotColorKind.SPOTRGB
And that's work !!! Great !
Copy link to clipboard
Copied
Hello!
can you show us a more complete version of that solution?
Thanks.
Copy link to clipboard
Copied
the full sample is in the scripting reference
//Creating a new spot color
// Creates a new spot color in the current document, then applies an 80% tint to the
color
if ( app.documents.length > 0 ){
var doc = app.activeDocument;
// Create the new spot
var newSpot = doc.spots.add();
// Define the new color value
var newColor = new CMYKColor();
newColor.cyan = 35;
newColor.magenta = 0;
newColor.yellow = 50;
newColor.black = 0;
// Define a new SpotColor with an 80% tint
// of the new Spot's color. The spot color can then
// be applied to an art item like any other color.
newSpot.name = "Pea-Green";
newSpot.colorType = ColorModel.SPOT;
newSpot.color = newColor;
var newSpotColor = new SpotColor();
newSpotColor.spot = newSpot;
newSpotColor.tint = 80;
}
Copy link to clipboard
Copied
Hello, Carlos!
Thanks for your answer, but I really want a Script or action to activate Global property of every Swatch.