FrancoisRecisio
Topic Author
Posts: 15
Joined: 06 Nov 2023, 12:07

Pause Rive animations

12 Jun 2024, 13:57

Hello!

I have a quick question about RiveControl: is it possible to pause the current animation or state? I don't see anything in the documentation to do this.

Thank you :)
 
User avatar
jsantos
Site Admin
Posts: 4834
Joined: 20 Jan 2012, 17:18
Contact:

Re: Pause Rive animations

14 Jun 2024, 20:33

This is not supported right now.

The RiveControl is connected to the Rendering event of the view and that's automatically increasing time.
void RiveControl::OnConnectToView(Noesis::IView* view)
{
    ParentClass::OnConnectToView(view);
    view->Rendering() += Noesis::MakeDelegate(this, &RiveControl::Advance);
}
For now, you need to modify the source code of that control to support pause. At some point, I think we need to implement a way to control this with a Storyboard (like the MediaTimeline they have in WPF). If you don't mind, please create a ticket about this. Thanks.
 
FrancoisRecisio
Topic Author
Posts: 15
Joined: 06 Nov 2023, 12:07

Re: Pause Rive animations

03 Jul 2024, 10:42

Sorry for the delay ! I created a ticket here: #3450
 
User avatar
jsantos
Site Admin
Posts: 4834
Joined: 20 Jan 2012, 17:18
Contact:

Re: Pause Rive animations

04 Jul 2024, 13:50

Thank you!

Who is online

Users browsing this forum: Google [Bot] and 9 guests