RenderSessionOptions
Configuration options for a render session.number
required
First frame to render (must be non-negative)
number
required
Last frame to render (must be >= startFrame)
AbortSignal
Optional AbortSignal to cancel the render session
RenderSession
Async iterable session for rendering frames sequentially.Helios
required
Helios instance to control
RenderSessionOptions
required
Render session configuration
Usage
RenderSession is an async iterable that yields frame numbers. For each frame, it:- Seeks the Helios instance to the frame
- Waits for the frame to be stable (all animations settled)
- Yields the frame number
- Checks if the session was aborted
Example
Partial rendering
Aborting a session
Integration with capture
Error handling
Throws an error if:startFrameis negativeendFrameis less thanstartFrame
Notes
- The session automatically waits for each frame to be stable before yielding
- Abort checks occur before starting, before each frame, and after waiting
- The session gracefully exits when aborted (does not throw)
- Frame seeking is sequential; parallel rendering requires multiple instances