How to start a track sequence from Lua

0

I have seen that track view now support component entity in preview and creates a new sequence component, but it seems that there is no bus for it so I don't know how to start a sequence from lua.

I have to start it from Flow Graph where I didn't understand how to play the sequence in reverse.

I tryed negative speed and sequence not starting from beginning.

asked 7 years ago183 views
3 Answers
0
Accepted Answer

REMOVEDUPLOAD

Hi @REDACTEDUSER

Thank you for this post. The component entity support in Track View in 1.8 is a preview release and missing Lua support, as you have discovered. We will be adding this in a future release.

Playing a sequence backwards using negative speeds doesn't work, as you've noted. I'll add this feature request into our queue, although I would predict several other things might behave unexpectedly in reverse. Keys that are active for a time region, such as Animation Keys, Boolean Keys and Audio Triggers, would not behave as expected because these expect time to be running forwards.

In the meantime, one work around that might work in Flow Graph is to compute the reverse time and use the JumpToTime input of the Animatinos:PlaySequence node, as shown in the attachment. This is not ideal but hopefully will get you unstuck.

answered 7 years ago
0

Thanks.It looks like a very clever solution.

As for the Play in reverse These things doesn't constitute an issue for my simple use case(just transforms) howerver I got your point and yes work will be required to support the play in reverse consistently across all the key types.

You can fake bool support making double keys(a key just before values invert ), but things that supports some kind of duration needs a specific implementation, but it may really worth it to have a play animation and sound in reverse too.

answered 7 years ago
0

@REDACTEDUSER

Is component entity in Track View now support lua in 1.15 ?

Tks,

Nassim

answered 6 years ago

This post is closed: Adding new answers, comments, and votes is disabled.