2 Replies Latest reply on Mar 13, 2016 4:38 AM by gionnyp9672044

    remove function transforms

    gionnyp9672044 Level 1

      I created a document where I apply the function transforms

      to remove the function transforms with a button does not go

      I used this script string.


      win.transform.canceltransformBtn.onClick = function () {

      var ref = new ActionReference()

      ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") )

      var action = executeActionGet(ref)

      var textKey = action.getObjectValue(stringIDToTypeID('textKey'))

      var bounds = textKey.getObjectValue(stringIDToTypeID('bounds'))

      var top= bounds.getUnitDoubleValue (stringIDToTypeID('top'))

      var left= bounds.getUnitDoubleValue (stringIDToTypeID('left'))