Answered
modify this code to (addtoselection)
Hello everyone and greetings to you
I found this code, which is for creating a selection for the selected layer
I want to modify the code to add another selection to the current selection
Meaning that I already have a layer selected and I want to select another layer next to the current selection
How can we help with this?
Thank you
selectActivePixels()
I found this code, which is for creating a selection for the selected layer
I want to modify the code to add another selection to the current selection
Meaning that I already have a layer selected and I want to select another layer next to the current selection
How can we help with this?
Thank you
selectActivePixels()
function cID (inVal) { return charIDToTypeID(inVal);}
function sID (inVal) { return stringIDToTypeID(inVal);}
function selectActivePixels(){
var desc15 = new ActionDescriptor();
var ref8 = new ActionReference();
ref8.putProperty( cID( "Chnl" ), cID( "fsel" ) );
desc15.putReference( cID( "null" ), ref8 );
var ref9 = new ActionReference();
ref9.putEnumerated( cID( "Chnl" ), cID( "Chnl" ), cID( "Trsp" ) );
desc15.putReference( cID( "T " ), ref9 );
executeAction( cID( "setd" ), desc15, DialogModes.NO );
}
