Skip to main content
Jqqerry
Inspiring
July 8, 2021
Answered

how to Move the active layer to top (always) ? script photoshop

  • July 8, 2021
  • 1 reply
  • 1198 views

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.

Correct answer Kukurykus
with(activeDocument) activeLayer.move(layers[0], ElementPlacement.PLACEBEFORE)

1 reply

Kukurykus
KukurykusCorrect answer
Legend
July 8, 2021
with(activeDocument) activeLayer.move(layers[0], ElementPlacement.PLACEBEFORE)
Jqqerry
JqqerryAuthor
Inspiring
July 8, 2021

Thank you so much. You're a genius.!!!!!!!!!!

Kukurykus
Legend
July 8, 2021

If you marked it as correct answer it has been unmarked since before you someone marked it.