Jump to state machine timestamp, using canvas-advanced
I have been working on some JS code to scrub to certain frames of a Rive file, but I cannot figure out how to handle state machines. I have forked a basic example of an animation in this CodeSandbox:
https://codesandbox.io/p/devbox/rive-canvas-advanced-out-of-band-assets-fonts-forked-8xyzpx?workspaceId=ws_QiPBvTN4CxzqgnpoCDABRc
While loopRender is true on line 71:
const loopRender = true;The animation will continually call renderLoop and the animation will play as expected.
But I want to be able to display a particular frame. Setting loopRender to `false` should make this happen, but instead the animation barely populates.
The logic seems identical to me, except that is calling advance() just once, instead of recursively. What am I not understanding here?