ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Can a script activate "Look At Selected Layer"command from View menu?

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Walter Soyka
Re: Can a script activate "Look At Selected Layer"command from View menu?
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]


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]