Render a single frame to PNG
riv_render_frameRender a single frame of a .riv animation or state machine to PNG, with options for time, dimensions, and artboard.
Instructions
Render one frame of a .riv animation or state machine to PNG. Returns the image inline and saves it to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .riv file | |
| time | No | Seconds to advance before capturing (default 0) | |
| width | No | ||
| height | No | ||
| outPath | No | Output PNG path (default: alongside the .riv) | |
| artboard | No | Artboard name (default: first) | |
| animation | No | Linear animation name | |
| background | No | CSS background color (default: transparent) | |
| stateMachine | No | State machine name (takes precedence) |