@jonathan Online Documentation (Tumult Hype Documentation) says:
"An easy way to loop timelines is to add a Timeline Action at the end of the timeline that will run a Continue Timeline action on the current timeline, with ‘Can restart timeline’ checked."
But that doesn't do the trick. A Timeline won't restart unless another Continue Timeline forward action is set at the beginning of the timeline.
That makes ‘Can restart timeline’ checked obsolete?
Any obvious case for using this 'Can restart timeline', checked? THANKS!
This is what seams to be happening. Hype determins the length of the timeline by …
The longest/last timeline OR
The last Timelineaction
The sequence follows this logic
CASE1 (with TimelineAction)
End of line in CASE 1 is reached.
Last action is execute
End of Timeline Event fires (=Stop)
This allows StartTimelineNamed to do it’s thing as it immediately sets the playhead to the beginning ContinueTimelinenNamed(Restart Allowed) continues playing but then step 3. stops the Timeline. Both commands don’t behave the same.
CASE2 (simple case)
End of line in CASE 2 is reached.
End of Timeline Event fires (=Stop)
CASE 3
As a button doesn’t live in the timeline…pressing it once the Timeline has reached Stop makes either ContinueTimelinenNamed(Restart Allowed) and StartTimelineNamed behave the same. This is also true for any event that fires after the end of timeline event.
Hope this helps.
PS: My guess is that “fixing” this would have to involve a special rule in the end of timeline event and also would be a problem because it might break existing animations if they upgrade.
Sorry, I think this is a bit of a documentation issue. You should be using Start Timeline.
You can think of timelines as having a playback state (play/paused), direction (forward/reverse), and a playhead position (aka the time).
Continue Timeline’s purpose is really to change the playback state to play. Therefore Continue Timeline will only do the checked “restart” behavior when the playhead is at the end and the playback state is paused – basically the timeline is complete.
Can Restart Timeline used to be the default behavior for the Continue Timeline action - it was thought of akin to the “play” button in iTunes. It will continue playing the current song, but if it is at the end of the playlist it will just start over. We added this option and changed the default behavior to not restart in 3.5, as we came to realize in most user cases the playhead doesn’t need to be restarted. However there’s still interesting use cases like toggle buttons and we needed the checkbox to preserve backwards compatibility.
Start Timeline will always set the playhead position to 0 (or the duration if reversed) and set the playback state to playing.
(The one fun special case with Start Timeline is that if it is used at the first frame it will be ignored as this will create an infinite loop!)