Questions says it all in a way. I have selected a layer, and I want to press some button combination to select the direct parent of the current selection.
Is there any?
I'm using PS CS4
With a script you can select the parent of the currently active layer.
var doc = app.activeDocument; var layerParent = doc.activeLayer.parent; if ( layerParent !== doc ) doc.activeLayer = layerParent;
Tested up to CS6
You can save it as
If you put the script the the Photoshop scripts folder (eg.
\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts on Windows) and restart photoshop, you can set a hotkey to launch the script from
Edit > Keyboard shortcuts.... You will find the new command under
File > Scripts > Select Parent
Gif of me pressing the hotkey a few times to travel the parent groups up until there aren't any parents left.
The gif loops after it gets to
Group 4, which is the last parent group.
Maybe not exactly what you're after but there is a shortcut key for selecting the layer above which you can keep doing until you get to the parent or group you're after. Try alt/option + ]. alt/option + [ selects the layer below. alt/option + < or + > selects the bottommost and topmost layer respectively.