Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects scripting: looking for a few hidden command IDs

  • scripting: looking for a few hidden command IDs

    Posted by Paul Hasas on September 15, 2019 at 1:55 am

    I’m looking to access a few of AE’s internal ops via scripting. I already know how to find the command IDs of menu commands (app.findMenuCommandId(“whatever”)), but there are a bunch of ops that don’t seem to want to give up their IDs, or don’t have any in the first place.

    Does anyone know if the following ops have command IDs, or else have simple ExtendScript equivalents? (I’ve heard moving keyframes in ES is a pain.)

    • Shift Selected Keyframes 1 Frame Earlier / NudgeKeyframesEarlier (Alt+LeftArrow)
    • Shift Selected Keyframes 10 Frames Earlier / NudgeKeyframesEarlierMore (Alt+Shift+LeftArrow)
    • Shift Layer 1 Frame Earlier / NudgeEarlier (Alt+PageUP)
    • Shift Layer 10 Frames Earlier / NudgeEarlierMore (Alt+Shift+PageUP)

    Yeah, I know I could learn ES properly and code this stuff from scratch. But I’m not trying to do anything super-custom in this case, just use default AE ops. AE should be better about exposing this stuff.

    Walter Soyka replied 4 years, 4 months ago 3 Members · 5 Replies
  • 5 Replies
  • Walter Soyka

    September 17, 2019 at 10:40 am

    Unfortunately, I’ve never seen these documented and don’t know if these are even available as command IDs.

    (Also, it’s worth noting that even if you find them — and I’d sure love to know if you do — Command IDs are internal and subject to change with each new release so this technique may require some maintenance.)

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Paul Hasas

    September 20, 2019 at 12:12 am

    Walter: I’ve seen people use the following trick to keep command IDs working from version to version (which of course breaks if AE changes the name of the command)
    app.executeCommand(app.findMenuCommandId("Go To Keyframe Time"));

    Also, if anyone feels like voting for a suggestion for AE to expose / create command IDs for all internal functions, or to build an event listener that mirrors back equivalent ExtendScript commands:
    https://adobe-video.uservoice.com/forums/911311-after-effects/suggestions/38601823-expose-all-internal-after-effects-commands-to-scri

  • Walter Soyka

    September 20, 2019 at 10:42 am

    I’ve used app.findMenuCommandId(), too, but it has a couple of important limitations:
    1) It only works on menu commands.
    2) It is dependent on your localized language.

    Your feature request has my vote!

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Justin Taylor

    December 10, 2021 at 10:25 pm

    This searchable list is has all the After Effects Command IDs listed in the dictionary files:

    https://hyperbrew.co/blog/after-effects-command-ids/

  • Walter Soyka

    December 10, 2021 at 11:00 pm

    Nice! Thanks for sharing.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy