lohriialo/photoshop-scripting-python

How to adjust HDR Toning

monkeycc opened this issue · 0 comments

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