2 Replies Latest reply on Jan 10, 2017 4:55 PM by YzStoat

    How to Set UserMaskEnabled is False

    YzStoat

      Hello :

      How to let Background Mask is Close:

      Before:Background1 >> After:Background2

      Sample.png

       

      I try to write this code, but is error:

       

      var ref2 = new ActionReference();
      ref2.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
      var desc = new ActionDescriptor();
      desc.putReference( charIDToTypeID('T   '), ref2 );
      desc.putBoolean( charIDToTypeID('UsrM'), false );
      executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
      

       

      What should I do?