I've found how to call the Unsharp Mask from within a script:
activeDocument.activeLayer.applyUnSharpMask(120,0.4,5);
I'm wondering if the same applies to Auto Levels and Smart Sharpen, and if so, does anyone have the correct syntax please?
calling Smart Sharpen and Auto Levels from script?
calling Smart Sharpen and Auto Levels from script?
Believe I found the Auto Levels:
activeDocument.activeLayer.autoLevels();
Yes?
activeDocument.activeLayer.autoLevels();
Yes?
calling Smart Sharpen and Auto Levels from script?
Have a look at SmartSharpen.jsx in X's xtools.
Auto Levels looks ok.
Auto Levels looks ok.
calling Smart Sharpen and Auto Levels from script?
Smart Sharpen has lots of switches and dials. The code in the script is based on Script Listener output (or generated from an action) so it contains all of the controls. If you are looking for only a subset of the functionality, you could get away with a simpler solution.
-X
-X
calling Smart Sharpen and Auto Levels from script?
If you do not want to be able to control the smart sharpen options with the script one simple way would be to call an action that has your smart sharpen step.
calling Smart Sharpen and Auto Levels from script?
Thanks for that guys. I'll most prob be back to this thread if I can't do suss out how to trim down the script.
(I have never recorded an action yet. I'm still a noob when it comes to PS scripting and actions)
(I have never recorded an action yet. I'm still a noob when it comes to PS scripting and actions)