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

Show/Hide Selection Edges

New Here ,
Dec 01, 2017 Dec 01, 2017

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

TOPICS
Actions and scripting

Views

2.8K

Translate

Translate

Report

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

Votes

Translate

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Wow ! Thank you for your help

Votes

Translate

Translate

Report

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