Skip to main content
NathanOdellin
Known Participant
September 16, 2020
Question

Illustrator Javascript - Render Swatch Legend - LAB Colour Values Incorrect

  • September 16, 2020
  • 11 replies
  • 54173 views

Hi All!

So, a question regarding the failry well known fab Script written by John Wundes:

renderSwatchLegend.jsx 

I need to create a chart that specifies just the LAB values underneith the swatches that the script creates, but curiously, the LAB values that the script produces are always wrong - they're always out by a digit and I don't know why. 

 

If I double click the swatch in the swatch palette, the LAB value is correct/as it should be, it is just the text that the script produces and lays onto the artboard that is incorrect. Please see following image. Any ideas why this glitch is happening?

 

This glitch happens consistently on every single import - the lab value that the script generates onto the artboard is never the correct value. Help! 

 

 

 

 

 

 

 

 

11 replies

NathanOdellin
Known Participant
September 16, 2020

ALSO - I forgot to add, does anyone know what the G number is (below the LAB values?)

Larry G. Schneider
Community Expert
Community Expert
September 16, 2020

Most likely Gray scale on a 0-10 range.

NathanOdellin
Known Participant
September 16, 2020

Thanks larry! 

 

Do you know if it is necessary to display this value along with LAB? (If I have to show LAB that is)