Skip to main content
Participant
November 7, 2018
Question

Illustrator script for making squares of color in various nuances?

  • November 7, 2018
  • 1 reply
  • 426 views

Hi.

I'm in the use for a Illustrator script for making squares of color in various nuances.

The reason why is that I usually use Onyx RIP own 'swatch book' to make various samples
of a Pantone color, like 30 squares in different nuances - with great succes.

Now I have to do the same with Caldera Grand RIP, and it's very difficult to work with ...

Does anyone have a clue if such a script exists?

Hope to hear good news from the forum.

Niels Westergaard

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
November 7, 2018

Hi Niels Westergaard

too little informations.

  • Where the color values comes from?
  • values in the script
  • values following a rule
  • from swatches
  • from external file

  • How the color fields are should aligned in what kind of document?

  • Do you looking for help to writing a script? How is your scripting knowledge base?
  • What scripting language do you prefer?

  • Which Illustrator version do you use?
  • Which OS?

And so on …

But anyway, here is a starting point in [JS]:

var aDoc = app.documents.add();

var Rect = aDoc.pathItems.rectangle(0, 0, 50, -50);

Rect.stroked = false;

Rect.filled = true;

var itemColor = new CMYKColor();

itemColor.cyan = 0;

itemColor.magenta = 100;

itemColor.yellow = 100;

itemColor.black = 0;

Rect.fillColor = itemColor;

This snippet creates a new document, a color (values within the script) and a filled rectangle.