Page 1 of 1

Pause Rive animations

Posted: 12 Jun 2024, 13:57
by FrancoisRecisio
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 :)

Re: Pause Rive animations

Posted: 14 Jun 2024, 20:33
by jsantos
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.

Re: Pause Rive animations

Posted: 03 Jul 2024, 10:42
by FrancoisRecisio
Sorry for the delay ! I created a ticket here: #3450

Re: Pause Rive animations

Posted: 04 Jul 2024, 13:50
by jsantos
Thank you!