Skip to main content
Participant
April 3, 2012
Question

Is there a script to change layer colors within the layers palette in illustrator CS5?

  • April 3, 2012
  • 12 replies
  • 4628 views

For example I would like to make my images layer Green and my copy layer Red in my layers palette.

This topic has been closed for replies.

12 replies

Inspiring
April 3, 2012

The RGB selected highlight colors?

Participant
April 3, 2012

In the layers palette whne you create multiple layers each layer is assigned a color by default. I'm looking to change the color for each layer using script. See attched screen grab. I want to change the colors of the layers within the layers palette.

Inspiring
April 3, 2012

If you have a doc open then you can do this… It will look for a layer by name but you can change that to index or whatever…

#target illustrator

var doc = app.activeDocument;

var lay, layCol;

try {

          lay = doc.layers.getByName( 'Copy' );

          layCol = new RGBColor();

          layCol.red = 255;

          layCol.green = 0;

          layCol.blue = 255;

          lay.color = layCol

} catch (e) {};