select focus parts
i turned on many sites , read lot not find it
is there way select parts of photo fire
i ask because 'i have lots of pictures , have apply changes on part of image in focus.
there script or algorithm allows this?
the newer version of photoshop have feature menu select>focus area. open dialog can adjust setting in. , when done have make selection. scriptlistener plug-in record operation should able scripted. have never tried to. should try script selecting in focus area. dialog has auto settings try recording these on script listener. should this:
// =======================================================
var idfocusmask = stringidtotypeid( "focusmask" );
var desc8 = new actiondescriptor();
var idfocusmaskuseautoinfocusradius = stringidtotypeid( "focusmaskuseautoinfocusradius" );
desc8.putboolean( idfocusmaskuseautoinfocusradius, true );
var idfocusmaskuseautoimagenoiselevel = stringidtotypeid( "focusmaskuseautoimagenoiselevel" );
desc8.putboolean( idfocusmaskuseautoimagenoiselevel, true );
var idfocusmaskbinaryseglambda = stringidtotypeid( "focusmaskbinaryseglambda" );
desc8.putdouble( idfocusmaskbinaryseglambda, 500.000000 );
var idfocusmaskusesoftmask = stringidtotypeid( "focusmaskusesoftmask" );
desc8.putboolean( idfocusmaskusesoftmask, false );
var idfocusmaskuseautobinarysegsigma = stringidtotypeid( "focusmaskuseautobinarysegsigma" );
desc8.putboolean( idfocusmaskuseautobinarysegsigma, true );
var idfocusmaskpowerlaw = stringidtotypeid( "focusmaskpowerlaw" );
desc8.putdouble( idfocusmaskpowerlaw, 1.000000 );
var idfocusmaskoutput = stringidtotypeid( "focusmaskoutput" );
var idfocusmaskoutput = stringidtotypeid( "focusmaskoutput" );
var idselectionoutputtoselection = stringidtotypeid( "selectionoutputtoselection" );
desc8.putenumerated( idfocusmaskoutput, idfocusmaskoutput, idselectionoutputtoselection );
executeaction( idfocusmask, desc8, dialogmodes.no );
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment