Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Are you talking about Photoshop or Camera Raw?
Copy link to clipboard
Copied
Camera Raw, via jsx.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
I wonder if you might not be better off posting on the Camera Raw Forum
or even Lightroom.
Copy link to clipboard
Copied
I see the same type of question here, and get the perfect answer: https://community.adobe.com/t5/photoshop-ecosystem-discussions/is-there-any-jsx-to-execute-the-auto-...
Copy link to clipboard
Copied
Which specific reply you mean in that thread?
Copy link to clipboard
Copied
R-bin 's reply is the most exciting.
Copy link to clipboard
Copied
There are many, it's why I asked of specific one... Which one you mean?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
The automatic white here, you can use Shift+ click to calculate the result, how to achieve this process with jsx?
Copy link to clipboard
Copied
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 );
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Also posted in this new topic:
Find more inspiration, events, and resources on the new Adobe Community
Explore Now