-
Selected Layer
Hello everyone, can anyone help me. How to select a layer below and a layer above with script. For example:
Layer1
Layer2
Layer3
We’re on layer2, how to select only layer3 below or just layer1 above. Thanks a lot for your help.
My code is like this:
var activeItem = app.project.activeItem;
var selectedIndex = activeItem.selectedLayers [0] .index-1;
activeItem.layer (selectedIndex) .selected = true;
He should select the layer above. But it selects the current layer and the layer above, two layers at once.