inconsistencies when a group is selected
when recording an action to load selection from a mask (ctrl+clicking the mask), the action works fine as long as we have a layer selected and not a group. The action will fail if we have a group selected.
I encountered the same problem with scripting:
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putProperty(cTID('Chnl'), sTID("selection"));
desc1.putReference(cTID('null'), ref1);
var ref2 = new ActionReference();
ref2.putEnumerated(cTID('Chnl'), cTID('Chnl'), cTID('Msk '));
ref2.putIdentifier(cTID('Lyr '), layerID);
desc1.putReference(cTID('T '), ref2);
executeAction(cTID('setd'), desc1, DialogModes.NO);
I'd love to see that fixed and that we have a consistent outcome. but until then, is there any efficient workaround? I know I can temporarily create a layer and then load the selection and then delete the layer, but that's a lot of overhead.
