ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

scripting: looking for a few hidden command IDs

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Paul Hasas
scripting: looking for a few hidden command IDs
on Sep 15, 2019 at 1:55:24 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.


Return to posts index

Walter Soyka
Re: scripting: looking for a few hidden command IDs
on Sep 17, 2019 at 10:40:32 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Paul Hasas
Re: scripting: looking for a few hidden command IDs
on Sep 20, 2019 at 12:12:50 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/3...


Return to posts index


Walter Soyka
Re: scripting: looking for a few hidden command IDs
on Sep 20, 2019 at 10:42:15 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]