Copy link to clipboard
Copied
I'm sorry before the question. sory to post such a silly question that is out of line with the community's community.
I don't know about Java and the script. And in fact, I don't use a lot of automation. But while working on Photoshop, I wanted to make only one function into a script, so I'm asking you this question. (Btw,i'm using Photoshop2019)
Regardless of the name of the layer, how should i produce a script that can send the active layer to the top? As you know, In photoshop already provide keyboard shorcut ( ctrl+shift+] ) But... There are times when layers are in a group or something doesn't go to the top depending on the situation. So if you can implement it with a script, if any layer is activated, I would like to know how to send to the top.
Thank you for reading it. I'm sorry for asking such a silly question.
with(activeDocument) activeLayer.move(layers[0], ElementPlacement.PLACEBEFORE)
Copy link to clipboard
Copied
with(activeDocument) activeLayer.move(layers[0], ElementPlacement.PLACEBEFORE)
Copy link to clipboard
Copied
Thank you so much. You're a genius.!!!!!!!!!!
Copy link to clipboard
Copied
If you marked it as correct answer it has been unmarked since before you someone marked it.
Copy link to clipboard
Copied
Thanks a lot!!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now