JS Scripting the Quick Selection Tool
using scriptlistener plug-in, see making selection quick selection tool produces code:
/ =======================================================
var idslct = charidtotypeid( "slct" );
var desc3 = new actiondescriptor();
var idnull = charidtotypeid( "null" );
var ref1 = new actionreference();
var idquickselecttool = stringidtotypeid( "quickselecttool" );
ref1.putclass( idquickselecttool );
desc3.putreference( idnull, ref1 );
executeaction( idslct, desc3, dialogmodes.no );
this makes sense. but, don't see how the location of selection made passed actiondescriptor (desc3) used executeaction() call.
basically, able programmatically set location of quick selection, in js.
any tips how set information actiondescriptor?
(or...is not possible set info tool quick selection?)
thanks++
sorry
with cs6 you may able record use of quick selection tool in action. can not use scriptlistener , record use of tools. installing scriptlistener in cs6 disable photoshop cs6 feature of recording use of photoshop's tools.
what see recorded scriptlistener selection of quick selection tool not use.
versions of photoshop prior cs6 did not have ability of recording use of photoshop tools in actions. recording things brush stroks not posible in versions prior cs6.
the scriptlistener plugin in cs6 must have been updated disable cs6 ability record things brush strokes rather being updating compatable cs6 features.
tool recording in cs6 not implmented @ all. more data recorded on fast machines on slow machines, action recorded on fast machines preform on slow machines not useable.
you may able program script in cs6 uses action recorded using stroke quick selection tool. aware size , resolution of current document need same pixel size , resolution recorded action on.
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment