Copy link to clipboard
Copied
Hey!
Does anyone know if it is possible to get a list of all the reference names for the executeCommand(); function?
To be more specific; i'm talking about a list of all possible "number names", like the one highlighted in red
app.executeCommand(2359);
2359 = Preferences
JesB
1 Correct answer
Here is the post, I just put it up.
Copy link to clipboard
Copied
Thanks to everyone who keeps contributing. I've just updated the PDF's and added the 2015 version as well. Nearly identical to 2014 at the moment, but will grow as we learn more ID's.
http://www.provideocoalition.com/after-effects-menu-command-ids/
Copy link to clipboard
Copied
Thanks so much for all the work that must have went into it... Unfortunately, the download-link refers me only to www.provideocoalition.com. Nothing else happens. I turned all adblockers of and tried it in safari as well as chrome. Am I missing something?
Copy link to clipboard
Copied
Thanks for the heads up. They keep updating stuff and breaking links. I'm looking into it right now.
Copy link to clipboard
Copied
Try it again. I relinked the files temporarily to my own ftp to get the links working until PVC can fix it.
Copy link to clipboard
Copied
Dear David, it worked!! thank you so much!
Copy link to clipboard
Copied
I just found that some of the ID under the Window menu may change if you will install any extension.
Probably the best way so far is to find out AE locale and using list of translated names find menu command via app.findMenuCommandId("insertMenuNameHere");
David Torno​, could you please create a new thread where everyone would post a new changes related to the executeCommand() list?
Thanks in advance!
Copy link to clipboard
Copied
//I tried to execute the following commands:
app.executeCommand(app.findMenuCommandId("Levels"));
//app.executeCommand(-459079705);
app.executeCommand(app.findMenuCommandId("Hue/Saturation"));
//app.executeCommand(-495079703);
app.executeCommand(app.findMenuCommandId("Drop Shadow"));
//app.executeCommand(-459931657);
Unfortunately, the effects were not applied. But after I apply effect "Drop Shadow" from the menu, line
alert(app.findMenuCommandId("Drop Shadow")); //displays 2452
After applying effect "Hue/Saturation" from the menu, line
alert(app.findMenuCommandId("Drop Shadow")); //displays 9000
After executing
app.executeCommand(9000);//effect were not applied
alert(app.findMenuCommandId("Drop Shadow")); //displays 2452
Does it make any sense? Unfortunately, pdf https://www.provideocoalition.com/after-effects-menu-command-ids/ page â„–11 gives too little information.
And is it possible with app.executeCommand() to apply the effect?
Thanks.
Copy link to clipboard
Copied
ID 9000 applies DropShadow as a Layer Style instead of as an Effect
app.executeCommand(9000)
Copy link to clipboard
Copied
Thanks, got it. And is it possible to apply the effect by app.executeCommand()?
Copy link to clipboard
Copied
I wouldnt rely on a app command to add an effect.
myLayer.effect.addProperty() is much more secure, and equally simple.
Is there a reason why you absolutely want a command ?
Copy link to clipboard
Copied
What UQg​ said. It's best to do such task via dedicated API. Also commandIDs tend to change from version to version, while effect matchNames don't change that much (unless developer decides to change it).
Before adding effect to a layer, check if it can be added at first by doing myLayer.effect.canAddProperty("effectMatchName") and only then handle adding it on success myLayer.effect.addProperty("effectsMatchName)
Copy link to clipboard
Copied
Thank you David, and really great work with the list
JesB
Copy link to clipboard
Copied
I just released the AECC2014_MenuIDs_v1_0.pdf. Lots of stuff in this one. Over 1600 items listed. Contextual menus, dynamic menu sections like recent projects, history, effect plugin categories, recent animation presets, etc...
Both AE CC and AE CC 2014 are located at the same link original link.
Copy link to clipboard
Copied
Sorry to bring up an old conversation but do we still not have a way to Reset the workspace that was last used?
I have been looking for a way to do this for Aftereffects for a while now and I decided to try and use a menuCommandId to do it but it turns out there is no known ID for it unless I am mistaken.
Copy link to clipboard
Copied
The Reset workspace command for After Effects is:
app.executeCommand(3566);


-
- 1
- 2