• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Open raw file in photoshop JavaScript CameraRAWOpenOptions() setting exposure does not work

New Here ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

I have a JavaScript that opens the RAW file and adjusts the intake options like tint, temperature, and exposure. The settings for adjustment to tint, and temperature properties work fine but not the exposure does not. here is my code:

    var strPath = "G:\\images\\Current\\_MG_"+ index +".CR2";
    var OpenOptions = new CameraRAWOpenOptions()
   
    OpenOptions.temperature = temperature
    OpenOptions.tint = tint
    OpenOptions.exposure = exposure
 
    app.displayDialogs = displayDialogs
    app.open( new File( strPath ),  OpenOptions)

Any suggestions? 
TOPICS
Actions and scripting , Windows

Views

81

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 06, 2022 Nov 06, 2022

Copy link to clipboard

Copied

It might help to post the full script. For example, what is the exposure variable value?

 

EDIT: I just tried with a valid hard-coded value and I can reproduce the issue.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 07, 2022 Nov 07, 2022

Copy link to clipboard

Copied

I tried - it doesn't work either. In this case, the ActionManager code works properly.

var c2t = charIDToTypeID,
    s2t = stringIDToTypeID;

var d = new ActionDescriptor();
var params = new ActionDescriptor();

d.putPath(s2t("null"), new File("G:\\images\\Current\\_MG_" + index + ".CR2"));
params.putInteger(c2t("Temp"), temperature);
params.putInteger(c2t("Tint"), tint);
params.putDouble(c2t("Ex12"), exposure);
d.putObject(s2t("as"), s2t("Adobe Camera Raw"), params);
executeAction(s2t("open"), d, DialogModes.NO);

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 08, 2022 Nov 08, 2022

Copy link to clipboard

Copied

LATEST

@defaultxu9xtaayqx03 – So how did you go with the code posted from @jazz-y ?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines