Opentoonz Set Scene Settings
opentoonz_set_scene_settingsChange a scene's camera resolution or frame rate by patching OpenToonz XML directly, since the scripting API lacks setters for these settings.
Instructions
Change a scene's camera resolution and/or frame rate (e.g. 1080p -> 720p).
OpenToonz's scripting API has no setters for these, so the scene file's XML
is patched directly; later edits to the scene keep the new settings. width
and height may be given independently — the omitted one keeps its value.
Re-render after changing this, and draw new art at the new size.
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": {
"workspace": "<workspace>",
"scene": "<scene>"
},
"name": "opentoonz_set_scene_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| scene | Yes | ||
| width | No | ||
| height | No | ||
| workspace | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |