Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Show/Hide Selection Edges

New Here ,
Dec 01, 2017 Dec 01, 2017

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

TOPICS
Actions and scripting
3.0K
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

correct answers 1 Correct answer

People's Champ , Dec 01, 2017 Dec 01, 2017

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 );

Translate
Adobe
People's Champ ,
Dec 01, 2017 Dec 01, 2017

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 );

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
New Here ,
Dec 01, 2017 Dec 01, 2017
LATEST

Wow ! Thank you for your help

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