Layer color
I like to have all my Illustrator layers set to the same color - medium blue.
Is there a quick or automated way of doing that instead of the slightly wearisome method of setting each one individually?
I like to have all my Illustrator layers set to the same color - medium blue.
Is there a quick or automated way of doing that instead of the slightly wearisome method of setting each one individually?
Hi m5heath,
I also afraid you need a script for your requirement. (An action can't do this for different number of layers.) But you have no acces to the 'layer color short names'. You have to define the color based of the rgb values instead.
Do you have scripting skills or do you know how to use scripts?
Perhaps a moderator can move this thread to Illustrator Scripting
For the beginning: here is a sample [JS] code for changing the layer color of active layer (without error management)
var aDoc = app.activeDocument;
var aLay, mediumBlueCol;
try {
aLay = aDoc.activeLayer;
mediumBlueCol = new RGBColor();
mediumBlueCol.red = 79;
mediumBlueCol.green = 79;
mediumBlueCol.blue = 255;
aLay.color = mediumBlueCol;
} catch (e) {};
Have fun
![]()
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.