How can I access the Edit>preferences>performance>use Graphics Processor option through the jsx scri
i want runa script , without gpu options. made actionto click on edit>preferences>performace>use graphics processor checkbox. want check wether checkbox ticked or not determine should use gpu run or without gpu run. cant seem find prefernce/property/object name access selection in photoshop scripting library. can me here?
i did not see in object viewer preference open gl, performance or gpu not think there dom method available retrieve or set it. can set using action manager using scriptlistener code.
// =======================================================
var idsetd = charidtotypeid( "setd" );
var desc29 = new actiondescriptor();
var idnull = charidtotypeid( "null" );
var ref19 = new actionreference();
var idprpr = charidtotypeid( "prpr" );
var idcchp = charidtotypeid( "cchp" );
ref19.putproperty( idprpr, idcchp );
var idcapp = charidtotypeid( "capp" );
var idordn = charidtotypeid( "ordn" );
var idtrgt = charidtotypeid( "trgt" );
ref19.putenumerated( idcapp, idordn, idtrgt );
desc29.putreference( idnull, ref19 );
var idt = charidtotypeid( "t " );
var desc30 = new actiondescriptor();
var idmmru = charidtotypeid( "mmru" );
var idprc = charidtotypeid( "#prc" );
desc30.putunitdouble( idmmru, idprc, 90.000000 );
var idopenglenabled = stringidtotypeid( "openglenabled" );
desc30.putboolean( idopenglenabled, true );
var idcchp = charidtotypeid( "cchp" );
desc29.putobject( idt, idcchp, desc30 );
executeaction( idsetd, desc29, dialogmodes.no );
More discussions in Photoshop Scripting
adobe

Comments
Post a Comment