Question
get current layer ID
Hello
I want to get the activeLayer Id and then move to top layer one by one (have to do some actions on each layer).
My problem is I don't know how get the ID of current layer.
I found these syntaxes but seems none of them working:
app.activeDocument.activeLayer.length
getLayerIndex(app.activeDocument.activeLayer)
any help will be appreciate