Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: load layer as an selection

$
0
0

Here is the javascript version.

function loadLayerTransparencyToSelection() {    var desc = new ActionDescriptor();        var ref = new ActionReference();        ref.putProperty( charIDToTypeID('Chnl'), charIDToTypeID('fsel') );    desc.putReference( charIDToTypeID('null'), ref );        var ref = new ActionReference();        ref.putEnumerated( charIDToTypeID('Chnl'), charIDToTypeID('Chnl'), charIDToTypeID('Trsp') );    desc.putReference( charIDToTypeID('T   '), ref );    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
};

Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>