Skip to content

Instantly share code, notes, and snippets.

@joonaspaakko
joonaspaakko / Select Next Layer (invisible or not).jsx
Last active February 26, 2024 21:46
Photoshop script that selects the next layer above or below even if it's not visible.
// Select Next Layer (invisible or not).jsx
// https://gist.github.com/joonaspaakko/048c9b58ccbb6e6f44c894bf4ce30b68
nextLayer('down');
// direction (↑): "up" or "above"
// direction (↓): "down" or "below"
function nextLayer( direction ) {
var doc = app.activeDocument;