Answered
Identifying the order of the active layer
Good afternoon everyone!
If the active layer is the 3rd in order, then do something.
It would be something I'm looking for. Thank you!
Good afternoon everyone!
If the active layer is the 3rd in order, then do something.
It would be something I'm looking for. Thank you!
Yeah, at least in AM code the itemIndex gives the position in the stack while the identifier is a unique number.
if(app.activeDocument.layers[app.activeDocument.layers.length- 3] == app.activeDocument.activeLayer) {alert ("OK!")} else {alert ("false")}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.