Adobe After Effects Forum
Can a script activate "Look At Selected Layer"command from View menu?
Can a script activate "Look At Selected Layer"command from View menu?
by Shai Benshoshan on Jan 9, 2019 at 12:02:03 pm




Re: Can a script activate "Look At Selected Layer"command from View menu?
by Walter Soyka on Jan 9, 2019 at 1:26:28 pm

Sure. This will work on any English-language After Effects installation:

app.executeCommand(app.findMenuCommandId("Look at Selected Layers"));

And this should work on any language (command IDs seem to be constant across versions, though it's certainly possible that they could change):

app.executeCommand(2834);

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Re: Can a script activate "Look At Selected Layer"command from View menu?
by Shai Benshoshan on Jan 10, 2019 at 9:58:26 am

Thank you, Walter !





© CreativeCOW.net