Scene kit command
render.trace.start
Path Trace
Starts a path-traced render (bounces, samples, denoise) in steps; answers its progress. Continue with `render.trace.step`.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bounces | integer | no | The longest light path, in bounces (4) |
collect | boolean | no | Trace nothing here: merge the sums of workers' shards (false) |
denoise | boolean | no | Smooth the remaining noise away (false) |
frame | number | no | The frame to render; the current frame when left out |
samples | integer | no | Samples per pixel, 1 to 4096 (64) |
seed | integer | no | Changes the noise pattern (0) |
volumeBounces | integer | no | How often light may scatter in a volume before the path ends (0: each point in a volume is lit directly only) |
wait | boolean | no | Render to the end and answer the image at once (false) |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "render.trace.start" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bounces, collect, denoise, frame, samples, seed, volumeBounces, wait. scene_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
done | boolean | no | |
fraction | number | no | |
height | integer | no | |
samples | integer | no | |
target | integer | no | |
width | integer | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"done": {
"type": "boolean"
},
"fraction": {
"type": "number"
},
"height": {
"type": "integer"
},
"samples": {
"type": "integer"
},
"target": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"bounces": {
"description": "The longest light path, in bounces (4)",
"type": "integer"
},
"collect": {
"description": "Trace nothing here: merge the sums of workers' shards (false)",
"type": "boolean"
},
"denoise": {
"description": "Smooth the remaining noise away (false)",
"type": "boolean"
},
"frame": {
"description": "The frame to render; the current frame when left out",
"type": "number"
},
"samples": {
"description": "Samples per pixel, 1 to 4096 (64)",
"type": "integer"
},
"seed": {
"description": "Changes the noise pattern (0)",
"type": "integer"
},
"volumeBounces": {
"description": "How often light may scatter in a volume before the path ends (0: each point in a volume is lit directly only)",
"type": "integer"
},
"wait": {
"description": "Render to the end and answer the image at once (false)",
"type": "boolean"
}
},
"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.