• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

111

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
LEGEND ,
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

 

Votes

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