lohriialo / photoshop-scripting-python

Scripting in Photoshop is used to automate a wide variety of repetitive task or as complex as an entire new feature
485 stars 95 forks source link

How to adjust HDR Toning #25

Open monkeycc opened 11 months ago

monkeycc commented 11 months ago

I want to adjust HDR Toning But I don't know how to use it


// =======================================================
var idOpn = charIDToTypeID( "Opn " );
    var desc225 = new ActionDescriptor();
    var iddontRecord = stringIDToTypeID( "dontRecord" );
    desc225.putBoolean( iddontRecord, false );
    var idforceNotify = stringIDToTypeID( "forceNotify" );
    desc225.putBoolean( idforceNotify, true );
    var idnull = charIDToTypeID( "null" );
    desc225.putPath( idnull, new File( "E:\\2023_ShuJu\\X\\group1\\1.tiff" ) );
    var idDocI = charIDToTypeID( "DocI" );
    desc225.putInteger( idDocI, 59 );
    var idtemplate = stringIDToTypeID( "template" );
    desc225.putBoolean( idtemplate, false );
executeAction( idOpn, desc225, DialogModes.NO );

// =======================================================
var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
    var desc309 = new ActionDescriptor();
    var idjsCt = charIDToTypeID( "jsCt" );
    desc309.putPath( idjsCt, new File( "C:\\Program Files\\Adobe\\Adobe Photoshop 2023\\Required\\HDRToning.jsx" ) );
    var idjsMs = charIDToTypeID( "jsMs" );
    desc309.putString( idjsMs, """undefined""" );
executeAction( idAdobeScriptAutomationScripts, desc309, DialogModes.NO );

chavez_fig02