get index of selected layer

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

lukasz

get index of selected layer

Post by lukasz »

larsen67 wrote:Try getting the name of your active layer… You will see it's the one you wanted it's just a lazy UI that does not redraw as you would expect… Even app.redraw() will not refresh this for you…

not sure I understand what you're saying?

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

lukasz

get index of selected layer

Post by lukasz »

still not sure what you meant by lazy UI hah, but decided to add the redraw(); method and it seems to fix it? really strange. why do you have to apply this in order to set an active layer? seems like the UI would do it sometimes, and other times it didn't. but now it is consistant. it's the worst when I am doing several things in succession, if it is only selecting active layer and that is all script does, it seems to work fine. very strange.