When I select spotHealingBrushTool in an action I can only put the brush diameter, etc, but not the
Mode:Normal
Type: Content-Aware
Sample All Layers: true
ScriptListener does not detect it.
Anyone has done this?
selectTool('spotHealingBrushTool');// Missing:// Mode:Normal// Type: Content-Aware// Sample All Layers: true
var idsetd = charIDToTypeID( "setd" ); var desc51 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref16 = new ActionReference(); var idBrsh = charIDToTypeID( "Brsh" ); var idOrdn = charIDToTypeID( "Ordn" ); var idTrgt = charIDToTypeID( "Trgt" ); ref16.putEnumerated( idBrsh, idOrdn, idTrgt ); desc51.putReference( idnull, ref16 ); var idT = charIDToTypeID( "T " ); var desc52 = new ActionDescriptor(); var idDmtr = charIDToTypeID( "Dmtr" ); var idPxl = charIDToTypeID( "#Pxl" ); desc52.putUnitDouble( idDmtr, idPxl, 40.000000 ); var idHrdn = charIDToTypeID( "Hrdn" ); var idPrc = charIDToTypeID( "#Prc" ); desc52.putUnitDouble( idHrdn, idPrc, 50.000000 ); var idAngl = charIDToTypeID( "Angl" ); var idAng = charIDToTypeID( "#Ang" ); desc52.putUnitDouble( idAngl, idAng, 0.000000 ); var idRndn = charIDToTypeID( "Rndn" ); var idPrc = charIDToTypeID( "#Prc" ); desc52.putUnitDouble( idRndn, idPrc, 100.000000 ); var idSpcn = charIDToTypeID( "Spcn" ); var idPrc = charIDToTypeID( "#Prc" ); desc52.putUnitDouble( idSpcn, idPrc, 25.000000 ); var idIntr = charIDToTypeID( "Intr" ); desc52.putBoolean( idIntr, true ); var idflipX = stringIDToTypeID( "flipX" ); desc52.putBoolean( idflipX, false ); var idflipY = stringIDToTypeID( "flipY" ); desc52.putBoolean( idflipY, false ); var idcomputedBrush = stringIDToTypeID( "computedBrush" ); desc51.putObject( idT, idcomputedBrush, desc52 );
executeAction( idsetd, desc51, DialogModes.NO );//////////////////////////////////
function selectTool(tool) { var desc9 = new ActionDescriptor(); var ref7 = new ActionReference(); ref7.putClass( app.stringIDToTypeID(tool) ); desc9.putReference( app.charIDToTypeID('null'), ref7 ); executeAction( app.charIDToTypeID('slct'), desc9, DialogModes.NO );};