Recognizing all active/highlighted layers
Hey guys, I've made an open source layer renaming utility and the repo is here:
![]()
One problem I have that I'm not sure how to solve yet is how to recognize that more than one layer is currently active/highlighted. Currently I'm only using the `activeLayer` property of the current document, and there doesn't seem to be any property within a Layer object for knowing that it's currently highlighted in the Layers panel. I'd like to be able to rename layers sequentially when more than one is selected, producing a list with numbers in a sequence as the suffix -- like highlighting 3 layers, and typing in "R Arm" to produce "R Arm1", "R Arm2", "R Arm3", etc. Renaming a single layer is pretty trivial, but is there any way or trick to find the indices of each currently selected layer and return them in an array? I did see an old post with qwertyfly giving a dynamic action but wasn't quite sure it was what I needed since it seemed to work with layer visibility alone.
