Skip to main content
Corvinus Corax
Inspiring
November 5, 2020
Answered

Hook for "Zoom out (in time)" (Extend Script)

  • November 5, 2020
  • 2 replies
  • 1076 views

I'm looking for a way to modify the timeline zoom value via extendScript. But the scripting guide does not seem to offer a hook at layer, item, compItem or project object level.

 

Is there any?

This topic has been closed for replies.
Correct answer Mylenium

I don't think this is in any way possible, not even with the native API. Those are undocumented internal UI functions. You might be able to work around this by setting a work area or markers and jumping around those points regardless of zoom. The work area will even auto-zoom the time scale to some extent.

 

Mylenium

2 replies

Corvinus Corax
Inspiring
November 5, 2020

Thanks, thats what I was afraid of..."The work area will even auto-zoom the time scale to some extent" is exactly why I would like to modify it, because the timeline zooms in or out after a file import/addItem function.

Community Expert
November 5, 2020

perhpas there's a way to emulate the "-" and "+" keystrokes? (just making a suggestion, i don't really know)

Corvinus Corax
Inspiring
November 9, 2020

Yes and No...as far as I know, it is possible to emulate (nearly?) everything you can type or click, but my problem needs it the other way around. Thats why I asked for a coding hook, to check for changes of the zoom functionality ae sets a value for.

 

So, this is no problem wit an emulation:

User or script does something -> tell script to "press" one of the buttons

 

But I need:

After Effects sets a zoom value -> tell script to do something.

 

Hope thats understandable 😉

Mylenium
MyleniumCorrect answer
Legend
November 5, 2020

I don't think this is in any way possible, not even with the native API. Those are undocumented internal UI functions. You might be able to work around this by setting a work area or markers and jumping around those points regardless of zoom. The work area will even auto-zoom the time scale to some extent.

 

Mylenium