Skip to main content
This topic has been closed for replies.
Correct answer O2 Creative NZ

Hi

I wrote a script to do this which I sell, but I had written my own ICC full color engine and color tools in JS, and I also wrote a decoder to read the .acb files directly to get their lab vales etc.

If you want to do this yourself in JavaScript you need to

  1. Convert the colors in illustrator to Lab values use Application.convertSampleColor method
  2. Load a list of pantone colors with Lab Values into an array - I would create a new document, clear the swatches, add in the pantone colours then read the Lab values from the swatches as a once off to build a database OR use Pantone Color Manager Software with Library Integration  can export different formats to work with, this software is free if you own a pantone book - look on the back of the book for the serial number to use for the software, or google it. You can then read in the text file generated by Pantone Color Manager.
  3. Loop through the Pantone colors, comparing the DeltaE (the lower the number the closer the match), A quick google search found this GitHub - zschuessler/DeltaE: CIE color difference formulas in JavaScript- can't vouch for the code - just saying code is out there.
  4. Create a new Spot Color using the Closest pantone color
  5. Replace the color with the new Spot.

Hope that helps.

Glenn

O2 Creative

2 replies

Inspiring
October 23, 2017

Hi

What particular features are you looking to use for recoloring?

Glenn

O2 Creative

Participant
October 23, 2017

I want to convert CMYK and RGB to spotcolors (Pantone Solid Coated) I know that the user Qwertyfly have modified a script to do this, however Im finding the results in the recoloring pane to be better so that´s why.

O2 Creative NZCorrect answer
Inspiring
October 23, 2017

Hi

I wrote a script to do this which I sell, but I had written my own ICC full color engine and color tools in JS, and I also wrote a decoder to read the .acb files directly to get their lab vales etc.

If you want to do this yourself in JavaScript you need to

  1. Convert the colors in illustrator to Lab values use Application.convertSampleColor method
  2. Load a list of pantone colors with Lab Values into an array - I would create a new document, clear the swatches, add in the pantone colours then read the Lab values from the swatches as a once off to build a database OR use Pantone Color Manager Software with Library Integration  can export different formats to work with, this software is free if you own a pantone book - look on the back of the book for the serial number to use for the software, or google it. You can then read in the text file generated by Pantone Color Manager.
  3. Loop through the Pantone colors, comparing the DeltaE (the lower the number the closer the match), A quick google search found this GitHub - zschuessler/DeltaE: CIE color difference formulas in JavaScript- can't vouch for the code - just saying code is out there.
  4. Create a new Spot Color using the Closest pantone color
  5. Replace the color with the new Spot.

Hope that helps.

Glenn

O2 Creative

CarlosCanto
Community Expert
Community Expert
October 23, 2017

Hi, no, Recolor Panel is not accessible. We must use other methods to recolor objects.