5

I'm looking for a way to add color chips, along with their color name onto the artboard based on a selected object.

I work in textile and print design, need to create a mill-sheet listing out every color chip used for each print to communicate with the factories overseas as to how it would be printed. Currently we make a swatches file, by drawing a box, filling it in with desired global swatch, and labeling it with the text tool - for every single color used. And to make mill sheets, it involves copying and pasting the color boxes we need. This is very time consuming.

In a perfect world, I'd like a script that would allow me to select an object on the artboard, run the script, and have color chips with names below them appear on the artboard.

Does this kind of thing seem possible to do with Illustrator scripting?

Thank you in advance.

3
  • Yes it is possible, in illustrator. In fact it is a quite simple for loop. Curiously, it is not possible to access the swatches in photoshop for some reason.
    – joojaa
    Commented Jul 27, 2016 at 20:39
  • Where would be the ideal place for the chips to appear? On or off the artboard? Or somewhere relative to the selection?
    – MG_
    Commented Aug 2, 2016 at 8:50
  • I believe there is a script called chpper that does exactly what you're looking for but for some reason when I google it, I can't find it. I had the script before and am looking for the same thing
    – user72604
    Commented Aug 2, 2016 at 13:55

1 Answer 1

1

Use “renderSwatchLegend.jsx” from John Wundes (www.wundes.com)

It's very close to what you want, in that it will output the swatches to the artboard; except not for a selection, but rather for every swatch in the swatches panel.

Because it's not selection-based, you may need to delete unused swatches from your swatches panel before running the script.

Download the script: https://raw.githubusercontent.com/johnwun/js4ai/master/renderSwatchLegend.jsx

Run a script help doc: https://helpx.adobe.com/illustrator/using/automation-scripts.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.