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

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

Explorer ,
Jan 11, 2023 Jan 11, 2023

Copy link to clipboard

Copied

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

Views

168

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

correct answers 1 Correct answer

Community Expert , 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);

Votes

Translate

Translate
Community Expert ,
Jan 11, 2023 Jan 11, 2023

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

Thank you jazz-y,

I have updated the below line.

 

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

 

instead of 

 

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

 

 

 

 

Votes

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

Copy link to clipboard

Copied

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 😞

Votes

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

Copy link to clipboard

Copied

LATEST

Okay, No Issues. Thank you for the update.

Votes

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