Render animation to MP4
render_animationRender a frame range to an H.264 MP4. engine=cycles_cpu (default) is photoreal; lit_preview (EEVEE) keeps materials and lights at ~10x less cost and is the right choice for reviewing motion and timing; preview_fast is shape-only. Animate first: keyframe cameras/objects via scene_apply animation.* operations, then render from that revision. Imported GLB/glTF skeletal and morph clips play too: the first clip is active after asset_import, its keys start at frame 0 and are timed at the scene frame rate in effect at import (24 fps by default), and animation.list_clips / animation.set_clip read and switch clips. Pass that same fps for real-time playback. One job renders up to 600 frames; for longer sequences fire parallel jobs over contiguous frame ranges and concatenate the MP4 segments (identical encoder settings make them concat-safe). The MP4 becomes an immutable artifact (download via artifact_get). Optional audioTracks mix owned audio_wav artifacts into an AAC soundtrack with startSeconds relative to this output segment, sourceOffsetSeconds, gainDb and looping. Inputs must belong to this project/deployment; PCM16 44.1 kHz mono/stereo only. Clipping is rejected; lower gainDb. Actual output streams/timing are verified. Returns a durable job handle.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"frameStart": "<frameStart>",
"frameEnd": "<frameEnd>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "render_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| width | No | ||
| engine | No | cycles_cpu | |
| height | No | ||
| samples | No | ||
| cameraId | No | ||
| frameEnd | Yes | ||
| projectId | Yes | Stable project ID returned by project_create or projects_list. | |
| frameStart | Yes | ||
| revisionId | No | "HEAD" (default) uses the project's current head | HEAD |
| audioTracks | No | ||
| idempotencyKey | Yes | Stable caller-chosen key for safe retries of this same request. |