Skip to main content
JesB-SsPV8V
Inspiring
June 30, 2014
Answered

List of reference names for executeCommand();

  • June 30, 2014
  • 6 replies
  • 13897 views

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

This topic has been closed for replies.
Correct answer David Torno

Awesome David, will you announce it at the forum when it's finished?


Here is the post, I just put it up.

After Effects Menu Command ID’s by David Torno

6 replies

gmetrixcc
Inspiring
January 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.

gmetrixcc
Inspiring
January 14, 2019

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

Legend
July 30, 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

JesB-SsPV8V
Inspiring
July 5, 2014

By doing some research I found this list, but i haven't checked if all the codes work in newer versions of AE.

However i still think it a good idea to create a forum document so everybody can share the command codes.

Code list:

http://www.sundstedt.se/aescripts/AE_CS3_Command_IDs.pdf

JesB

Legend
July 8, 2014

I'm already working on a CC version as well as a CC 2014 version.

Participating Frequently
July 11, 2014

Here's a couple other commands. (tested with After Effects CC)

The most recent Undo: 16

The most recent Redo: 2035

(These don't seem to matter what the exact name of the undo/redo command are, they just always run the most recent)

Thanks, I was about to post a new updated pdf shortly with a ton more commands I processed today. I will add these as well. Appreciate it.


Also, do you know if there is a way to get the name of the menu item if you only have the ID number?

Sadly no. I haven't found a way to do that. It would make life easier in making this list.


There's also a few more, but I don't know how usable they are.

The entire history stack can be accessed with ID numbers.

Basically if the history stack was something like:

Undo New Composition

Undo New Layer

Undo Change Value

-------------------------------

Redo Parent

Redo Add Shape Layer

Then the IDs would be:

Undo New Composition :      -1048577

Undo New Layer:                 -1048578

Undo Change Value             16

-------------------------------

Redo Parent                        2035

Redo Add Shape Layer        -1048582

Redo Add Camera Layer      -1048583

The stack always starts at -1048577 and then counts downward by 1 (skipping over 3 numbers when Undo changes to Redo)

UQg
Legend
July 1, 2014

It might be worth creating a new Document for this. Never tried so i don't know how it works...

Something that anyone in the After Effects Scripting community can edit/ add new entry: english name / commandID / more info about how to use

Some are kind of obvious, some not at all.

JesB-SsPV8V
Inspiring
July 1, 2014

Thanks for all the replies, I appreciate it

UQg: it sounds like a good idea.

If no one has already started to create a document for this, and if I got time for it I might do some research and create one.

JesB

Legend
July 1, 2014

Searching the forums can help a great deal, but check out this old thread:

Re: How to get codes for app.executeCommand() method?