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

Is there a similar "Autn" method that can only turn white and black automatically?

Community Beginner ,
Apr 13, 2022 Apr 13, 2022

I know the method of automatic light and shadow: Trydesc1.putBoolean (charIDToTypeID ("AuTn"), true).
Now I need a separate automatic white and automatic black method, because I only need these two parameter values, and these two separate automatic results are not the same as fully automatic results, in CameraRaw you can press and hold Shift to achieve automatic, and I need to use jsx code to achieve automatic operation, is there a similar "AuTn" method that can automatically white and automatic black? Thank you very much.

TOPICS
Actions and scripting , macOS , Windows
838
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
Adobe
Community Expert ,
Apr 13, 2022 Apr 13, 2022

Are you talking about Photoshop or Camera Raw? 

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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022

Camera Raw, via jsx.

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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022

 

var desc1 = new ActionDescriptor();
desc1.putBoolean(charIDToTypeID("AuTn"), true); // AuTn = Auto
executeAction(stringIDToTypeID('Adobe Camera Raw Filter'), desc1, DialogModes.NO);

 

In this script, "AuTn" is every parameter in automatic light and shadow. I only need automatic white and black, because I don't want automatic exposure, and exposure will affect the results of automatic white and black.
So, is there any way to be automatic only for white and black?

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
Community Expert ,
Apr 13, 2022 Apr 13, 2022

I wonder if you might not be better off posting on the Camera Raw Forum 

https://community.adobe.com/t5/camera-raw/ct-p/ct-camera-raw?page=1&sort=latest_replies&lang=all&tab...

or even Lightroom. 

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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022
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
LEGEND ,
Apr 13, 2022 Apr 13, 2022

Which specific reply you mean in that thread?

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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022

R-bin 's reply is the most exciting.

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
LEGEND ,
Apr 13, 2022 Apr 13, 2022

There are many, it's why I asked of specific one... Which one you mean?

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
Community Expert ,
Apr 13, 2022 Apr 13, 2022

The Camera Raw Filter in Photoshop's Filter menu is related to, but technically different from the Adobe Camera Raw plugin.

 

EDIT: Can you post a screenshot and clearly mark which UI control you are wishing to get the value of via SL code?

 

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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022

Camera Raw Filter can control each parameter through jsx, which is great. It's just that some parameters are not all listed in the official documents, such as auto tone. I don't know what other important parameters are unknown. Is there a detailed list?

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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022

Auto-White.png
The automatic white here, you can use Shift+ click to calculate the result, how to achieve this process with jsx?

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
Community Expert ,
Apr 13, 2022 Apr 13, 2022

I wouldn't expect that there is a way to capture the "artificial intelligence" step of the shift key... Just the end result:

 

var idAdobespCameraspRawspFilter = stringIDToTypeID( "Adobe Camera Raw Filter" );
    var desc299 = new ActionDescriptor();
    var idCrVe = charIDToTypeID( "CrVe" );
    desc299.putString( idCrVe, """14.3""" ); // CRF version
    var idPrVN = charIDToTypeID( "PrVN" );
    desc299.putInteger( idPrVN, 5 );
    var idPrVe = charIDToTypeID( "PrVe" );
    desc299.putInteger( idPrVe, 184549376 );
    var idWhonetwo = charIDToTypeID( "Wh12" ); // Whites
    desc299.putInteger( idWhonetwo, -100 ); //  The value!
executeAction( idAdobespCameraspRawspFilter, desc299, DialogModes.NO );
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
Community Beginner ,
Apr 13, 2022 Apr 13, 2022
var desc1 = new ActionDescriptor();
desc1.putBoolean(charIDToTypeID("AuTn"), true); // AuTn = Auto Tone
desc1.putBoolean(charIDToTypeID("????"), true); // ???? = Auto White
desc1.putBoolean(charIDToTypeID("????"), true); // ???? = Auto Black
executeAction(stringIDToTypeID('Adobe Camera Raw Filter'), desc1, DialogModes.NO);

Fixed values won't solve the problem, and it would be nice if you could achieve the function of Auto White and Auto Black like AuTn.

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
Community Expert ,
Apr 14, 2022 Apr 14, 2022
LATEST
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