Great thank you OSUblake !
Maybe you can help me with this one ( I don't want to flood the forum with my newbie questions ) :
I need to extract duration from timelines that I don't know if they were scaled or not. Is there a quick way to get the "real duration" ? Or should I always do :
var realDuration = timeline.duration() * timeline.timeScale();
Yes, what you suggest is totally possible.
But my goal here is to decouple the timeline's logic from the logic that needs to observe it:
https://en.wikipedia.org/wiki/Observer_pattern
Or is there a "onSomethingAdded" event ?
I know this is a very simple question ... with multiple solutions. I'm just curious to see what would be your best solution.
My requirement states that the timeline duration must be at least 30 seconds. My actual animation lasts 27 seconds. I would like to "fill" the timeline with absolutely nothing happening for the last 3 seconds, without changing the time scale. The timeline doesn't repeat and the initial timeline duration is unknown.
What would you do ?
Is there a callback function triggered if trying to reach a label that doesn't exist ?
Or maybe a way to get a list of valid labels ?
This feature would have save me a lot of debugging time.
Thank you
Doubleclick 1.19.0 CDN:
http://s0.2mdn.net/ads/studio/cached_libs/timelinemax_1.19.0_4cba7b163d6263b39d53727ed4c7bb6f_min.js
Points to VERSION: 1.18.6
Is this normal ?