Copy link to clipboard
Copied
I'm trying to write a script that will allow me to replace one of my swatches for a Pantone swatch, i need to replace about 5 swatches with 5 different Pantone swatches, i'd like to be able to run this script when I'm in old documents. Anyone able to help?
Copy link to clipboard
Copied
Hi,
share your code.
Copy link to clipboard
Copied
I'm looking for code to write the script
Copy link to clipboard
Copied
I have old swatches in my panel and I have the new swatches in my panel. I'd like to get code that will replace swatch A with swatch B, or if there is language that will convert swatch A to a specific Pantone that would be great.
example:
replace swatch GRAY 44 with PANTONE 423
replace swatch GRAY 77 with PANTONE 425
Copy link to clipboard
Copied
The names in quotes must match what is in your swatch palette
var myDocument = app.activeDocument;
myDocument.colors.item("GRAY 44").remove("PANTONE 423");
myDocument.colors.item("GRAY 77").remove("PANTONE 425");
Copy link to clipboard
Copied
What is the criteria to replace the swatch? How to identify which Pantone Swatch to use for replacement
-Manan
Find more inspiration, events, and resources on the new Adobe Community
Explore Now