Code: Select alldocRef.crop (new Array(100,200,400,500), 45, 20, 20)
This can crop a picture automatically with no confirmation~~ But sometimes I want to move the cropped area, and with the "Enter" key confirmation , the scripts can continue to run.
How to?
BTW: What are the parameters (100,200,400,500) means?
How to Crop the pictures with MY Confirmation??
-
pfaffenbichler
How to Crop the pictures with MY Confirmation??
You could record the procedure with ScriptingListener.plugin, use that code and set the DialogModes to ALL, I suspect.
-
xaero
How to Crop the pictures with MY Confirmation??
Thanks!
it can stop with the following scripts, but the cropped area can't be moved by the MOUSE(but can be moved by the "ARROW KEY")!
WHY?
Code: Select allvar idCrop = charIDToTypeID( "Crop" );
var desc22 = new ActionDescriptor();
var idT = charIDToTypeID( "T " );
var desc23 = new ActionDescriptor();
var idTop = charIDToTypeID( "Top " );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idTop, idPxl, 0.000000 );
var idLeft = charIDToTypeID( "Left" );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idLeft, idPxl, 66.000000 );
var idBtom = charIDToTypeID( "Btom" );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idBtom, idPxl, 1536.000000 );
var idRght = charIDToTypeID( "Rght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idRght, idPxl, 1602.000000 );
var idRctn = charIDToTypeID( "Rctn" );
desc22.putObject( idT, idRctn, desc23 );
var idAngl = charIDToTypeID( "Angl" );
var idAng = charIDToTypeID( "#Ang" );
desc22.putUnitDouble( idAngl, idAng, 0.000000 );
var idDlt = charIDToTypeID( "Dlt " );
desc22.putBoolean( idDlt, false );
var idcropAspectRatioModeKey = stringIDToTypeID( "cropAspectRatioModeKey" );
var idcropAspectRatioModeClass = stringIDToTypeID( "cropAspectRatioModeClass" );
var idtargetSize = stringIDToTypeID( "targetSize" );
desc22.putEnumerated( idcropAspectRatioModeKey, idcropAspectRatioModeClass, idtargetSize );
var idWdth = charIDToTypeID( "Wdth" );
var idPxl = charIDToTypeID( "#Pxl" );
desc22.putUnitDouble( idWdth, idPxl, 800.000000 );
var idHght = charIDToTypeID( "Hght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc22.putUnitDouble( idHght, idPxl, 800.000000 );
var idRslt = charIDToTypeID( "Rslt" );
var idRsl = charIDToTypeID( "#Rsl" );
desc22.putUnitDouble( idRslt, idRsl, 0.000000 );
executeAction( idCrop, desc22, DialogModes.ALL );
it can stop with the following scripts, but the cropped area can't be moved by the MOUSE(but can be moved by the "ARROW KEY")!
WHY?
Code: Select allvar idCrop = charIDToTypeID( "Crop" );
var desc22 = new ActionDescriptor();
var idT = charIDToTypeID( "T " );
var desc23 = new ActionDescriptor();
var idTop = charIDToTypeID( "Top " );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idTop, idPxl, 0.000000 );
var idLeft = charIDToTypeID( "Left" );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idLeft, idPxl, 66.000000 );
var idBtom = charIDToTypeID( "Btom" );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idBtom, idPxl, 1536.000000 );
var idRght = charIDToTypeID( "Rght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc23.putUnitDouble( idRght, idPxl, 1602.000000 );
var idRctn = charIDToTypeID( "Rctn" );
desc22.putObject( idT, idRctn, desc23 );
var idAngl = charIDToTypeID( "Angl" );
var idAng = charIDToTypeID( "#Ang" );
desc22.putUnitDouble( idAngl, idAng, 0.000000 );
var idDlt = charIDToTypeID( "Dlt " );
desc22.putBoolean( idDlt, false );
var idcropAspectRatioModeKey = stringIDToTypeID( "cropAspectRatioModeKey" );
var idcropAspectRatioModeClass = stringIDToTypeID( "cropAspectRatioModeClass" );
var idtargetSize = stringIDToTypeID( "targetSize" );
desc22.putEnumerated( idcropAspectRatioModeKey, idcropAspectRatioModeClass, idtargetSize );
var idWdth = charIDToTypeID( "Wdth" );
var idPxl = charIDToTypeID( "#Pxl" );
desc22.putUnitDouble( idWdth, idPxl, 800.000000 );
var idHght = charIDToTypeID( "Hght" );
var idPxl = charIDToTypeID( "#Pxl" );
desc22.putUnitDouble( idHght, idPxl, 800.000000 );
var idRslt = charIDToTypeID( "Rslt" );
var idRsl = charIDToTypeID( "#Rsl" );
desc22.putUnitDouble( idRslt, idRsl, 0.000000 );
executeAction( idCrop, desc22, DialogModes.ALL );
-
pfaffenbichler
How to Crop the pictures with MY Confirmation??
Mouse works fine for me (Photoshop 13.0.4 on Mac OSX 10.6.8 ).
-
xaero
How to Crop the pictures with MY Confirmation??
would you please take me a favor to test it in Windows?
the mouse can't work under windows photoshop cs6 (13.0.1) 64bit
the mouse can't work under windows photoshop cs6 (13.0.1) 64bit
-
Paul MR
How to Crop the pictures with MY Confirmation??
Works fine in Windows 7 with Photoshop 13.0.1 64bit.
-
txuku
How to Crop the pictures with MY Confirmation??
Bonjour
The parameters (100,200,400,500) = bounds.
Works fine in Windows XPMode with Photoshop CS6 32 bits
The parameters (100,200,400,500) = bounds.
Works fine in Windows XPMode with Photoshop CS6 32 bits
-
xaero
How to Crop the pictures with MY Confirmation??
Thanks a lot, all of you.
It works fine in photoshop cs4 extended~~ but can't work properly in cs4.
(100,200,400,500) = bounds , but what exactly does "100" or "200" or '400" mean?
Is (100, 200) a coordinate of left up corner, and (400,500) is the right bottom one?
It works fine in photoshop cs4 extended~~ but can't work properly in cs4.
(100,200,400,500) = bounds , but what exactly does "100" or "200" or '400" mean?
Is (100, 200) a coordinate of left up corner, and (400,500) is the right bottom one?