Skip to content

Using Timeline Callbacks

Tim Franklin edited this page May 12, 2020 · 2 revisions

TD-MTL has a fairly simple callback system once you see how it works. The "Time" component that handles all timing passes callback information to the "Facade" class which then forwards these to the right place.

How to receive and interact with this callback data?

Found here, /Program/Interface/Multi_Layer_Timeline/Timeline3D/Playback, we have a simple base and derived class structure that makes the process quite straightforward.

Each cue type has it's own callback class

image

If you are only using a certain type of cue, don't worry about the other ones, they do nothing by default. (as of the time of writing this)

How do I trigger an event?

Override the derived class' methods. A "Start" callback will probably end up meaning something entirely different for every user so how would we define this for you?

image An example derived class, Osc Type Cue.