Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Due to my non-US keyboard I've had to make an Action that maps "Select forward layer" to an F-key.

However the "Select forward layer" doesn't select invisible layers.

Is there a way to select the forward layer, despite it being invisible?

share|improve this question
    
This is really a computer user help question, rather than a photography question. I'm moving to SuperUser.com, where you should get better help. –  jrista Mar 10 '11 at 0:07
add comment

migrated from photo.stackexchange.com Mar 10 '11 at 0:08

This question came from our site for professional, enthusiast and amateur photographers.

1 Answer

Assuming that by forward layer you mean top layer, you can do this with a simple script. Open your ExtendScript Toolkit (it should have installed along with Photoshop) and make a new Javascript document. Then enter:

var doc = app.activeDocument; //references current document
doc.activeLayer = doc.layers[0]; //selects the top layer

This will make the top layer visible when it's selected. If you want to keep it invisible, add the following line at the end:

doc.activeLayer.visible = false;

Save it in your Presets/Scripts folder for convenience (though it can go anywhere).

Then go into Photoshop, make a new file, start recording a new Action, then go to File > Scripts > Browse, and find your script. Opening it runs it. Once it's run, stop recording and just assign a shortcut key to the action, et voila!

If for any reason you can't find the ExtendScript Toolkit, just put the code in a blank text document and change the extension to .jsx . If you move the script file after you've recorded the action you will have to re-record it as it remembers the path.

share|improve this answer
    
By "forward" I mean "next" layer - is there a way to script selecting the "next" or "previous" layer? Photoshop's built in action allows you to select next and previous layers, however it ignores invisible layers. I don't want to change the visibility of the layer, I just want to be able to select them regardless of visibility. –  timkl Mar 10 '11 at 11:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.