multiple timelines for a book bleuprint

Hello guys and gals, i have am new in visual scripting and i am stuck !

I have an allembic animation of turning pages of a book , i used timelines with specific secondes for each page to turn , the idea is everytime a key is pressed a timeline begins thus a page turns, i used a switch on int node and it woked, the proplem here is overlaping of the animation and when i intredius another key with the switch on int to reverse the timeline so it turns back it just works on the last executed timeline.

any idea for a logic to use here
Thank you

1 Like

You can use a DoOnce node to stop the keypress until you’re ready.

Or, just use one timeline, but somehow use the switch to choose which animation to play. ( probably also needs DoOnce ).

More elaborate configurations are possible ( interrupting, reversing etc ).

Do you need one timeline node per page? Why not use the same TL for all pages? You can adjust the TL’s play rate dynamically. And since you’d have only one playing, there would never be any confusion.

Thank you for the quick reply.

please can you give me more input on how to do that -adjusting the play rate dynamically-

Get Timeline → Set Play Rate