Scene kit command
render.image
Render Image
Renders the active camera's view (at `frame`, with `samples`) and answers it as a base64 PNG with its size. Does not change the scene.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
frame | number | no | The frame to render (the current frame when left out) |
samples | integer | no | Samples per pixel side, 1 to 4 (2) |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "render.image" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: frame, samples. scene_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
base64 | string | no | |
extension | string | no | |
height | integer | no | |
mime | string | no | |
width | integer | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"base64": {
"type": "string"
},
"extension": {
"type": "string"
},
"height": {
"type": "integer"
},
"mime": {
"type": "string"
},
"width": {
"type": "integer"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"frame": {
"description": "The frame to render (the current frame when left out)",
"type": "number"
},
"samples": {
"description": "Samples per pixel side, 1 to 4 (2)",
"type": "integer"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.