Activity › Forums › Adobe After Effects › Can a script activate “Look At Selected Layer”command from View menu?
-
Can a script activate “Look At Selected Layer”command from View menu?
Posted by Shai Benshoshan on January 9, 2019 at 12:02 pmShai Benshoshan replied 7 years, 4 months ago 2 Members · 2 Replies -
2 Replies
-
Walter Soyka
January 9, 2019 at 1:26 pmSure. 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 | RenderBreak [blog] | Profile [LinkedIn]
Reply to this Discussion! Login or Sign Up
