Question
Scripting - Get layer when in a group
So i know i can use the below to get a layer
var layerName = "Text BG";
app.activeDocument.activeLayer = layers[layerName];
This works fine when the layer isn't within a group, but if it is I get an error
Error 1302: No such element
Line: 53 -> app.activeDocument.activeLayer = layers[layerName];
The layer is within a group called Text Group, how do i go about getting the group correctly?
