Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Select previous/next group at the same hierarchy level

Explorer ,
Aug 08, 2021 Aug 08, 2021

Copy link to clipboard

Copied

In Photoshop we can select previous/next visible layer with Alt+[ and Alt+]. But is it possible to select a "sibling" at the same level? For example:

 

laiy10580071_0-1628458346385.png

 

Is it possible to make a script that jumps from A to B and vice versa? I know one possible method is collect the whole layer tree first, but it's very slow.

 

TOPICS
Actions and scripting

Views

36

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Aug 08, 2021 Aug 08, 2021

Copy link to clipboard

Copied

LATEST

 

if ((l=(lSs=(lyr = (aD = activeDocument).activeLayer).parent.layerSets).length) && !(l - 2))
	lSs=[].slice.call(lSs), aD.activeLayer=lyr.name==(shft=lSs.shift()).name ? lSs[0] : shft

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines