want to select path or mask


if file have path named "Path 1"
i want selection from that path
else if there is no path please check channel named "Alpha 1" is there i want selection from that channel
please help me


if file have path named "Path 1"
i want selection from that path
else if there is no path please check channel named "Alpha 1" is there i want selection from that channel
please help me

it show this error
That will learn me to be lazy and copy/paste/edit in the browser window… ![]()
var doc = app.activeDocument;
if ( doc.pathItems.length > 0 ) {
doc.pathItems[0].makeSelection( 0, true, SelectionType.REPLACE );
doc.pathItems[0].deselect();
} else {
try {
doc.selection.load( doc.channels.getByName('Alpha 1'), SelectionType.REPLACE, false );
} catch(e) {}
};
Would have thought you could have sorted that mistake thou… ![]()
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.