Creating Useful Functions for After Effects Run Menu Command

David Torno’s new After Effects scripting series, Free Function Friday, adds a new function. One that might prove risky to use, but still pretty useful for personal scripts.

are you looking for an easy way to just simply launch a menu command?

In his latest post, David walks through creating a Run Menu Command function that will… you guessed it, run a set menu command from After Effects.

If you are looking for a way to just launch a menu command in After Effects, executeMenuCommand() and findMenuCommandID() come in handy. While not officially supported by Adobe, the two end up being a quick solution.

David notes that while it s not an officially supported feature of ExtendScript when the function is complete, it makes for an easy way to launch a menu item.

The episode covers building a function that allows you to call one line of code, runMenuCmd. This tutorial makes use of command ids. If you are unfamiliar with using command IDs, you should check out Davids’s older post and download the PDF listing command IDs here.

The Free Function Friday introduction video located here has some good information and resources that will come in handy when scripting for After Effects.