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

problems getting an action for hdr toníng

Guest
May 16, 2011 May 16, 2011

Dear users,


my request is to create an action using specific settings for the hdr toning, because i need to apply the hdr toning to more than
1000 images.

But for some reason the action is not recording my settings?

The configuration of my PC:

OS: Windows 7


Intel Quad Core


16 GB Ram


Scratch space more than 500 GB

CS 5  64 Bit Vers. 12.0.04

Also tried scriptlistening, but as you can see below, there were no parameters or settings recorded?

var idPly = charIDToTypeID( "Ply " );
    var desc5 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref3 = new ActionReference();
        var idCmnd = charIDToTypeID( "Cmnd" );
        ref3.putIndex( idCmnd, 1 );
        var idActn = charIDToTypeID( "Actn" );
        ref3.putName( idActn, "hdr" );
        var idASet = charIDToTypeID( "ASet" );
        ref3.putName( idASet, "Default Actions" );
    desc5.putReference( idnull, ref3 );
    var idCntn = charIDToTypeID( "Cntn" );
    desc5.putBoolean( idCntn, true );
executeAction( idPly, desc5, DialogModes.NO );

Would be great to get any suggestions or help.

Thx Rudy!

TOPICS
Actions and scripting
1.6K
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
Guide ,
May 16, 2011 May 16, 2011

I may well be wrong but at a very quick glance I would say that you have recorded the playing of an action… What you need do with scriptlistener is record the process/dialog or what ever it is again and utilize the output from that…

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
Guest
May 17, 2011 May 17, 2011

You ´re right, the copied file displays the playing of the action.
But the recording of the action itself give´s even less information, non of the settings were recorded?


var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
    var desc9 = new ActionDescriptor();
    var idjsCt = charIDToTypeID( "jsCt" );
    desc9.putPath( idjsCt, new File( "C:\\Program Files\\Adobe\\Adobe Photoshop CS5 (64 Bit)\\Required\\HDRToning.jsx" ) );
    var idjsMs = charIDToTypeID( "jsMs" );
    desc9.putString( idjsMs, "undefined" );
executeAction( idAdobeScriptAutomationScripts, desc9, 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
Guide ,
May 17, 2011 May 17, 2011

Im not sat in front of a box equipped with CS5 at the moment… Even so it appears that HDRToning is a pre-installed script… Have you tried open it in the ESTK to see what it does? Thats if it not some binary…

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 ,
May 17, 2011 May 17, 2011

If you recorded an action that you use menu Image>Adjustments>HDR Toning... that step would record the uses of a script that ships with Photoshop CS5. On a Windows system its "C:\Program Files\Adobe\Adobe Photoshop CS5\Required\HDRToning.jsx"  This script seems to retrieve the last setings it saved and set its dialog settings to them. It is not coded as a plugin like the Fit Image Script that will record its Dialog Settings into an Action step and not display a dialog when the action step is played.  It is a more normal script like the Image Processor that will record the dialog setting used the last time it was used and will display then in its dialog when it displays it for user interaction as a starting point.  This script is interactive through its dialog. If batched the dialog will cause the batch process to be interavtive for each image.

So your action does not get your settings recorded into it but the script does retrieve settings you used and records changes you make to then during its execution.

To do what you want you would need to program an HDR Toning Script that is a Photoshop Plug-in script like the Fit Image script shipped with CS5 is. Look at the Plug-in support in "C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts\Fit Image.jsx"  You may be able to creat the script you need by examining these two scripts.

JJMack
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
Guest
May 17, 2011 May 17, 2011

Thanks for replying, thought, that i might cope without writing a script?
I tried to record some other apps from the image adjustments panel, but most of them came out with settings in the scriptlistener?

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 ,
May 17, 2011 May 17, 2011
LATEST

ESTK ships with Photoshop "Adobe ExtendScript Toolkit CS5" and is the default application if you double click on a jsx file.  I'm just a script hacker and the way "C:\Program Files\Adobe\Adobe Photoshop CS5\Required\HDRToning.jsx" interacts with Photoshop and its features or plugins is above my knowledge  It also looks like it will always prompt you to flatten images that are not flat. How the actual toning is done I do not see in the script.  I never knew the "C:\Program Files\Adobe\Adobe Photoshop CS5\Required\"  contained a script till your append and I recoeded a Photoshop Action to see what would be recorded in the action step. I do not understand the structure and the functions in the "HDRToning.jsx" script. Do not know if it would even work if you executed it from the ESTK and not from menu Image>Adjustment>HDR Toning... .

JJMack
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