how get Layer ID from Layer Name ?
Hello everyone.
Tangled with the implementation of a small script.
I want to add to each of the selected layers of the Document a new layer with the image, make sure the top of each layer.
I think what I need:
1. Create an array of user-selected layers (necessarily by name)
2. Select image;
3. Pass through the array to create a layer, put in the new layer selected image and move the array over this layer.
Found an example where the array is created on indexes, but in my case it's not that - after each addition of a new layer indexes is changes .How do I get the index of the layer by its name?
