How to find the radius of the filter ?


of action received follow scripts.

i want change name of script layer, depending on radius of user-defined filter. how find used , set value new layer name?

 

 

//blur {  jamengine.jsonplay  (  "surfaceblur",  {  "'rds '":  {  "<unitdouble>":  {  "'#pxl'": 9  }  },  "'thsh'":  {  "<integer>": 255  }  },  dialogmodes.no  );  }  //name  {  jamengine.jsonplay  (  "select",  {  "target":  [  "<reference>",  [  [  "layer",  [  "<name>",  "low=9"  ]  ]  ]  ],  "makevisible":  [  "<boolean>",  false  ]  },  dialogmodes.no  );  }  

does help?

// 2014, use @ own risk;

#target photoshop

if (app.documents.length > 0) {

mydocument = app.activedocument;

// invoke filter;

var idgsnb = stringidtotypeid( "surfaceblur" );

var theentry = executeaction( idgsnb, undefined, dialogmodes.all );

// value;

var thevalue = theentry.getunitdoublevalue(theentry.getkey(0));

var thevalue2 = theentry.getunitdoublevalue(theentry.getkey(1));

alert (thevalue+"\n"+thevalue2)

};

 

why want anyway?



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?