Create a gist now

Instantly share code, notes, and snippets.

Embed
Selects the parent group of the currently selected layer.
// https://gist.github.com/joonaspaakko/e8b5d577953e25c0a86903a76a7f4bba
#target photoshop
var doc = app.activeDocument;
var layerParent = doc.activeLayer.parent;
if ( layerParent !== doc ) doc.activeLayer = layerParent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment