Mobile app version of vmapp.org
Login or Join
Alves566

: Is there a way to select layer transparency in Photoshop (CC) using JS? Selecting transparency layer that I mean is similar as Cmd+Click (Windows: Ctrl+Click) on Photoshop layer panel. What I

@Alves566

Posted in: #AdobePhotoshop #Javascript #Layers #Selections #Transparency

Selecting transparency layer that I mean is similar as Cmd+Click (Windows: Ctrl+Click) on Photoshop layer panel.

What I found so far in the Adobe JS reference document only to load from the channel color.

// only for rgb img //

var doc = app.activeDocument;
var channelRed = doc.channels[0];
var channelGreen = doc.channels[1];
var channelBlue = doc.channels[2];

doc.selection.load(channelRed, SelectionType.REPLACE,true);
doc.selection.load(channelGreen, SelectionType.EXTEND,true);
doc.selection.load(channelBlue, SelectionType.EXTEND,true);

//save as jsx and run in ps


However, this above is to select by load the selection from color plate/Channel. While what I need is to load the selection from Layer.

Any clue that I can follow?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves566

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme