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:
Copy link to clipboard
Copied
Take a look at the link below for direction...
https://www.indesignjs.de/extendscriptAPI/photoshop2015.5/#CameraRAWOpenOptions.html
Regards,
Mike
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.
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);
Copy link to clipboard
Copied
@defaultxu9xtaayqx03 – So how did you go with the code posted from @jazz-y ?
Copy link to clipboard
Copied
Same here.
I am writing a script to show a side-by-side before/after the edit, and I cannot load the RAW image with all parameters reset.
The code works when I change the CameraRAWOpenOptions.settings to "CameraRAWSettingsType.CAMERA", but the problem is that I need to keep the crop and transform image after the edit, so the framing of both the before and after matches.
Here is my try:
#target photoshop