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

How do we change the Camera Raw file Profile correction using Photoshop script?

Explorer ,
Jan 11, 2023 Jan 11, 2023

Hello Everyone!,

Is this possible to change the Camera Raw file Profile correction using Photoshop script?

Please find the screenshot for reference.

 

IMG_4872.png

 

 

TOPICS
Actions and scripting , Windows
598
Translate
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

correct answers 1 Correct answer

Mentor , Jan 11, 2023 Jan 11, 2023
var myFile = (new File()).openDlg();

var c2t = charIDToTypeID,
    s2t = stringIDToTypeID;

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

d.putPath(s2t("null"), myFile);
d.putBoolean(stringIDToTypeID('overrideOpen'), true);
params.putInteger(c2t("AuCA"), 1);
params.putDouble(c2t("LPEn"), 1);
params.putInteger(s2t("idLPSe"), 1);
d.putObject(s2t("as"), s2t("Adobe Camera Raw"), params);
executeAction(s2t("open"), d, DialogModes.ALL);
Translate
Adobe
Mentor ,
Jan 11, 2023 Jan 11, 2023
var myFile = (new File()).openDlg();

var c2t = charIDToTypeID,
    s2t = stringIDToTypeID;

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

d.putPath(s2t("null"), myFile);
d.putBoolean(stringIDToTypeID('overrideOpen'), true);
params.putInteger(c2t("AuCA"), 1);
params.putDouble(c2t("LPEn"), 1);
params.putInteger(s2t("idLPSe"), 1);
d.putObject(s2t("as"), s2t("Adobe Camera Raw"), params);
executeAction(s2t("open"), d, DialogModes.ALL);
Translate
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
Explorer ,
Jan 12, 2023 Jan 12, 2023

Thank you jazz-y,

I have updated the below line.

 

params.putInteger(s2t("idLPSe"), 1);

 

instead of 

 

params.putInteger(s2t("LPSe"), 1);

 

 

 

 

Translate
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
Mentor ,
Jan 12, 2023 Jan 12, 2023

This line is not needed at all.

There is another problem here - without an explicit indication of the manufacturer, model and lens correction profile, it still does not turn on. When I tested this feature, the raw camera simply saved this setting for a particular shot and loaded it further, giving the illusion that everything was working. But it's not. Now on other files I can not get this option enabled 😞

Translate
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
Explorer ,
Jan 12, 2023 Jan 12, 2023
LATEST

Okay, No Issues. Thank you for the update.

Translate
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