Skip to main content
Known Participant
September 23, 2018
Answered

Open contrast mask window

  • September 23, 2018
  • 1 reply
  • 462 views

I would like to open the unsharp mask window from this script that I found on the forum

I know I could do it from ScriptingListener

but I prefer this more synthetic script

this is the starting script

var docRef = app.activeDocument;

docRef.activeLayer.applyUnSharpMask(200, 1, 0)

I would like to add

DialogModes.ALL

This topic has been closed for replies.
Correct answer pixxxelschubser

gionnyp9672044  schrieb

I would like to open the unsharp mask window from this script that I found on the forum …

You can open the dialog with fixed values

var docRef = app.activeDocument;

app.displayDialogs = DialogModes.ALL;

docRef.activeLayer.applyUnSharpMask(200, 1, 0);

or use AM-Code and open unsharp mask window with the last used values

executeAction(stringIDToTypeID("unsharpMask"), undefined, DialogModes.ALL); 

Have fun

BTW

why the title of your thread is different from that what you described

1 reply

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
September 23, 2018

gionnyp9672044  schrieb

I would like to open the unsharp mask window from this script that I found on the forum …

You can open the dialog with fixed values

var docRef = app.activeDocument;

app.displayDialogs = DialogModes.ALL;

docRef.activeLayer.applyUnSharpMask(200, 1, 0);

or use AM-Code and open unsharp mask window with the last used values

executeAction(stringIDToTypeID("unsharpMask"), undefined, DialogModes.ALL); 

Have fun

BTW

why the title of your thread is different from that what you described

Known Participant
September 23, 2018

Thank you.