How to select topmost layer?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

GDrider77

How to select topmost layer?

Post by GDrider77 »

pretty straight forward. I need to select the top most layer in my layer panels.

Thanks for the help.

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

Mike Hale

How to select topmost layer?

Post by Mike Hale »

The top most layer will always have an index of zero

Code: Select allapp.activeDocument.activeLayer = app.activeDocument.layers[0];
GDrider77

How to select topmost layer?

Post by GDrider77 »

Thanks a bunch. I knew it was simple, but couldn't remember where i saw how to do it.

R.