Making a layer group active
Posted: Fri Jul 26, 2019 12:05 am
I am trying to make layer groups active in order to rename them. I can do it to a layer outside of a group but not to the group itself. It was my understanding that groups were treated the same as the art layers.
Why does the below code only work on art layers and not on layer sets?
Thanks,
Limey (Paul)
Why does the below code only work on art layers and not on layer sets?
Code: Select all
var doc = app.activeDocument;
doc.activeLayer = doc.artLayers.getByName("test");
app.activeDocument.activeLayer.name = "Hi there!"
Limey (Paul)