I had a look in the code and this is the area I believe the transform takes place. I tried to sandwich the line in after line 11 var idLnkd = charIDToTypeID( "Lnkd" ); desc59.putBoolean( idLnkd, true ); // keep aspect ratio But the that ddin't work for me and caused the script to stop wrk (no specific error as it is running from within photoshop ) Thanks Matt Stdlib.userGoToFreeTransform = function(doc, layer) { function _ftn() { function preMove() { var desc = new ActionDescriptor(); var lref = new ActionReference(); lref.putEnumerated(cTID("Lyr "), cTID("Ordn"), cTID("Trgt")); desc.putReference(cTID("null"), lref); desc.putEnumerated(cTID("FTcs"), cTID("QCSt"), cTID("Qcsa")); var desc75 = new ActionDescriptor(); desc75.putUnitDouble( cTID('Hrzn'), cTID('#Pxl'), 1.000000 ); desc75.putUnitDouble( cTID('Vrtc'), cTID('#Pxl'), 1.000000 ); desc.putObject( cTID('Ofst'), cTID('Ofst'), desc75 ); executeAction(cTID("Trnf"), desc, DialogModes.NO); } function retPostMoveDesc() { var desc = new ActionDescriptor(); var lref = new ActionReference(); lref.putEnumerated(cTID("Lyr "), cTID("Ordn"), cTID("Trgt")); desc.putReference(cTID("null"), lref); desc.putEnumerated(cTID("FTcs"), cTID("QCSt"), cTID("Qcsa")); var desc75 = new ActionDescriptor(); desc75.putUnitDouble( cTID('Hrzn'), cTID('#Pxl'), -1.000000 ); desc75.putUnitDouble( cTID('Vrtc'), cTID('#Pxl'), -1.000000 ); desc.putObject( cTID('Ofst'), cTID('Ofst'), desc75 ); return desc; } var state = true; preMove(); var lvl = $.level; $.level = 0; try { executeAction(cTID("Trnf"), retPostMoveDesc(), DialogModes.ALL);///ALL } catch (e) { state = false; if (e.number != 8007) { // if not "User cancelled" throw e; } executeAction(cTID("Trnf"), retPostMoveDesc(), DialogModes.NO); } finally { $.level = lvl; } return state; } return Stdlib.wrapLCLayer(doc, layer, _ftn) }
... View more