Reply To: Layer Naming & Add Layer with box script wish

#14323190
Jeremy Howard
Participant

Hey Nathan,

Good on you for being so diligent that you found your way all the way back to a post from 2016!

Here is the string you are looking for:
app.activeDocument.layers.item(“Art”).layerColor = [255,0,0];

Notice the [255,0,0] instead of “RED”. This is because the layer colors need to be specified in RGB values when changing them on an existing layer.

Hope this helps!

This article was last modified on January 27, 2020

Comments (0)

Loading comments...