How can I set CameraRAWOpenOptions using Javascripts in Photoshop CS6?


i have been unable set camerarawopenoptions in scripts worked fine me in photoshop cs5 not work in photoshop cs6.  there no error messages when run scripts, , appear finish okay, images come out unadjusted.  below essence of how i'm trying it.  when run these scripts in extendscript (cs5 or cs6 not make difference), photoshop cs6 uses own default (saved) settings, cs5 allow overrides.  did change default settings in cameraraw in cs6 use default lens correction profiles available exif data, , i'm wondering if rendered script unable change of rest of settings.

 

here's how have code:

 

var rawoptions = new camerarawopenoptions;

rawoptions.settings=camerarawsettingstype.custom;

rawoptions.exposure=+2.00;

rawoptions.vignettingamount = 0;

rawoptions.vignettingmidpoint = 0;

rawoptions.contrast = 50;

rawoptions.saturation = 0;

rawoptions.shadows = 0;

rawoptions.luminancesmoothing = 0;

 

var jpgopts = new jpegsaveoptions;

jpgopts.quality = jpegquality;

 

//perform loop through files

app.open(testlisting[0], rawoptions, false);

app.activedocument.close(saveoptions.donotsavechanges);

for (var nfile = nstart; nfile < nstop; nfile++)

  {

    app.open(testlisting[nfile], rawoptions, false);

    fnamesave = new file(savepath+"/"+testlisting[nfile].name);

    app.activedocument.saveas(fnamesave, jpgopts, false, extension.uppercase);

    app.activedocument.close(saveoptions.donotsavechanges);

}



More discussions in Photoshop Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support