Hi guys,
First - I'd like to once again thank you guys for this great reference of a site. It often helps me in my work.
And here I am once again with a mystery. I'm trying to understand how photoshop is using the free transform function. I'm familiar with this thread, but unsure of how photoshop actually uses the 4 input variables in it's actionscript.
I see from the thread that I linked, that there is another transform function in the standard library toolset (xtools) developed by a few of the geniuses here. I'm not asking for a new tool, or to say it doesn't work right. Rather I'm looking to understand what photoshop is doing with those variables. At this point, just from my own curiosity.
Looking through xtools I can see that I can probably use the transform method to generate a scaled increase in size, which is essentially my goal. What I'm curious is to what are the purposes of the non-percent (i.e. idHrzn, idVrtc) variables used in the below function. Also - what is the logic behind these variables and how can I use them to generate a proportional increase in image size, as opposed to a transform that will effect the aspect ratio.
var idTrnf = charIDToTypeID( "Trnf" );
var desc48 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref35 = new ActionReference();
var idLyr = charIDToTypeID( "Lyr " );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref35.putEnumerated( idLyr, idOrdn, idTrgt );
desc48.putReference( idnull, ref35 );
var idFTcs = charIDToTypeID( "FTcs" );
var idQCSt = charIDToTypeID( "QCSt" );
var idQcsa = charIDToTypeID( "Qcsa" );
desc48.putEnumerated( idFTcs, idQCSt, idQcsa );
var idOfst = charIDToTypeID( "Ofst" );
var desc49 = new ActionDescriptor();
var idHrzn = charIDToTypeID( "Hrzn" );
var idPxl = charIDToTypeID( "#Pxl" );
desc49.putUnitDouble( idHrzn, idPxl, -84.000000 );
var idVrtc = charIDToTypeID( "Vrtc" );
var idPxl = charIDToTypeID( "#Pxl" );
desc49.putUnitDouble( idVrtc, idPxl, -489.500000 );
var idOfst = charIDToTypeID( "Ofst" );
desc48.putObject( idOfst, idOfst, desc49 );
var idWdth = charIDToTypeID( "Wdth" );
var idPrc = charIDToTypeID( "#Prc" );
desc48.putUnitDouble( idWdth, idPrc, 120.625000 );
var idHght = charIDToTypeID( "Hght" );
var idPrc = charIDToTypeID( "#Prc" );
desc48.putUnitDouble( idHght, idPrc, 120.642361 );
var idIntr = charIDToTypeID( "Intr" );
var idIntp = charIDToTypeID( "Intp" );
var idBcbc = charIDToTypeID( "Bcbc" );
desc48.putEnumerated( idIntr, idIntp, idBcbc );
executeAction( idTrnf, desc48, DialogModes.NO );