Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

List of reference names for executeCommand();

Explorer ,
Jun 30, 2014 Jun 30, 2014

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

TOPICS
Scripting
12.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Jul 09, 2014 Jul 09, 2014

Here is the post, I just put it up.

After Effects Menu Command ID’s by David Torno

Translate
Advocate ,
Jun 14, 2016 Jun 14, 2016

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/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 01, 2016 Jul 01, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 01, 2016 Jul 01, 2016

Thanks for the heads up. They keep updating stuff and breaking links. I'm looking into it right now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 01, 2016 Jul 01, 2016

Try it again. I relinked the files temporarily to my own ftp to get the links working until PVC can fix it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2016 Jul 02, 2016

Dear David, it worked!! thank you so much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 26, 2017 Mar 26, 2017

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 12, 2017 Oct 12, 2017

//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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 13, 2017 Oct 13, 2017

ID 9000 applies DropShadow as a Layer Style instead of as an Effect

app.executeCommand(9000)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 14, 2017 Oct 14, 2017

Thanks, got it. And is it possible to apply the effect by app.executeCommand()?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 15, 2017 Oct 15, 2017

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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 15, 2017 Oct 15, 2017

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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 09, 2014 Jul 09, 2014

Thank you David, and really great work with the list

JesB

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 29, 2014 Jul 29, 2014

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.

After Effects Menu Command ID’s by David Torno

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 14, 2019 Jan 14, 2019

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 14, 2019 Jan 14, 2019
LATEST

The Reset workspace command for After Effects is:
app.executeCommand(3566);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines