Copy link to clipboard
Copied
Hi
I'm new in Adobe scripting. I hope i can find some help here
I need a snippet can show/hide current layer selection ( not deselect ) which command trigger in "View> Show> Selection Edges" menu
I dont see it record in history or log . Is there any way to access it or trigger shortcut via javascript code ?
Thanks
Dzung
Read here Create actions in Adobe Photoshop how to Insert a non-recordable menu command.
In a script, you can use this code
app.runMenuItem(stringIDToTypeID("toggleEdges"))
or
var r = new ActionReference();
r.putEnumerated(charIDToTypeID("Mn "), charIDToTypeID("MnIt"), charIDToTypeID("TglE"));
var d = new ActionDescriptor();
d.putReference(charIDToTypeID("null"), r);
executeAction( charIDToTypeID( "slct" ), d, DialogModes.NO );
Copy link to clipboard
Copied
Read here Create actions in Adobe Photoshop how to Insert a non-recordable menu command.
In a script, you can use this code
app.runMenuItem(stringIDToTypeID("toggleEdges"))
or
var r = new ActionReference();
r.putEnumerated(charIDToTypeID("Mn "), charIDToTypeID("MnIt"), charIDToTypeID("TglE"));
var d = new ActionDescriptor();
d.putReference(charIDToTypeID("null"), r);
executeAction( charIDToTypeID( "slct" ), d, DialogModes.NO );
Copy link to clipboard
Copied
Wow ! Thank you for your help