Skip navigation
Currently Being Moderated

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

Apr 3, 2012 12:49 PM

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

 
Replies
  • Currently Being Moderated
    Apr 3, 2012 12:54 PM   in reply to DieselDiesel1234

    The RGB selected highlight colors?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 3, 2012 1:05 PM   in reply to DieselDiesel1234

    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) {};
     
    
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 3, 2012 1:33 PM   in reply to DieselDiesel1234

    Im not sure but don't think so… Think they will all be 'other' no matter what the values… ID does have enumerators for it's UI colors but no such luck here…

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points