Trouble changing Camera RAW settings in Javascript (worked in CS5, but not CS6)


i upgraded master collection cs6 production premium cs5, , camerarawopenoptions settings in scripts had working in photoshop cs5 (64-bit) using extendscript cs5 no longer working photoshop cs6.  no error messages, settings specify in scripts (for example, camerarawopenoptions.exposure=2.00) not take effect when image opened.  other photoshop properties , actions within script working correctly.

 

note issue in photoshop cs6.  can use extendscript cs5 or cs6, , result same.

 

here way changing settings in script:

 

var rawoptions = new camerarawopenoptions;

//rawoptions.settings=camerarawsettingstype.custom;

//rawoptions.settings=camerarawsettingstype.selectedimage;

rawoptions.settings=camerarawsettingstype.camera;

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);

}

i found few of them work.

 

camerarawopenoptions.tint=0; // works (-150 150)

camerarawopenoptions.temperature=5500; // works (2000 50000)

camerarawopenoptions.luminancesmoothing = 0; // works 0 100

camerarawopenoptions.saturation=50; // works =100 100

camerarawopenoptions.vignettingamount=0; //works -100 100

camerarawopenoptions.vignettingmidpoint=0; //works -100 100

 

 

these ones not work:

 

camerarawopenoptions.brightness=0; // not work (0 150)

camerarawopenoptions.contrast=0; // not work (-50 100)

camerarawopenoptions.exposure = 0; // not work (-4.0 +4.0)

camerarawopenoptions.shadows=0; // (0 100) not work

camerarawopenoptions.whitebalance=whitebalancetype.shade; // not work

 

i noticed that, doing file-->file info--> "advanced" tab-->expand "camera raw properties" ones not work have either been removed (brightness) or had "2012" added names in xmp in conversion cs5 cs6.

 

it appears mapping javascript objects/properties how photoshop knows them broken new version.  there way fix this?

 

is there alternate way going through xmp?

 

unfortunately, i'm wanting use "exposure", 1 of ones broken.  main script sets custom exposure each image (trying smooth out ev jumps between successive images in sunset time lapse).



More discussions in Adobe Camera Raw


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