Scene kit command
render.set
Render Settings
Sets render width and height, motion blur and shutter, ambient occlusion (on, distance, strength), and colour management (view transform, look, exposure).
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ao | boolean | no | Ambient occlusion in fast renders: creases and covered places get less of the world's light (on) |
aoDistance | number | null | no | How far around a point surfaces occlude it, in metres (up to 1000); null works it out from the scene's size (6 % of its diagonal, 0.05 to 2 m) |
aoStrength | number | no | How much of the occlusion shows, 0 to 4 (1) |
exposure | number | no | Stops of exposure before the view transform, -32 to 32 (0) |
height | integer | no | Pixels |
look | "none" | "punchy" | "greyscale" | "high-contrast" | "low-contrast" | no | A grade after the view transform (none) |
motionBlur | boolean | no | Blur what moves while the shutter is open, in path-traced renders |
shutter | number | no | How long the shutter is open, in frames (0.5) |
shutterPosition | "center" | "start" | "end" | no | Where the shutter opens around the frame (center) |
view | "standard" | "agx" | "khronos-pbr-neutral" | no | Colour management's view transform (standard): standard clips at white, agx and khronos-pbr-neutral roll highlights off |
width | integer | no | Pixels |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "render.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: ao, aoDistance, aoStrength, exposure, height, look, motionBlur, shutter, shutterPosition, view, width. scene_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"ao": {
"description": "Ambient occlusion in fast renders: creases and covered places get less of the world's light (on)",
"type": "boolean"
},
"aoDistance": {
"description": "How far around a point surfaces occlude it, in metres (up to 1000); null works it out from the scene's size (6 % of its diagonal, 0.05 to 2 m)",
"oneOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"aoStrength": {
"description": "How much of the occlusion shows, 0 to 4 (1)",
"type": "number"
},
"exposure": {
"description": "Stops of exposure before the view transform, -32 to 32 (0)",
"type": "number"
},
"height": {
"description": "Pixels",
"type": "integer"
},
"look": {
"description": "A grade after the view transform (none)",
"enum": [
"none",
"punchy",
"greyscale",
"high-contrast",
"low-contrast"
],
"type": "string"
},
"motionBlur": {
"description": "Blur what moves while the shutter is open, in path-traced renders",
"type": "boolean"
},
"shutter": {
"description": "How long the shutter is open, in frames (0.5)",
"type": "number"
},
"shutterPosition": {
"description": "Where the shutter opens around the frame (center)",
"enum": [
"center",
"start",
"end"
],
"type": "string"
},
"view": {
"description": "Colour management's view transform (standard): standard clips at white, agx and khronos-pbr-neutral roll highlights off",
"enum": [
"standard",
"agx",
"khronos-pbr-neutral"
],
"type": "string"
},
"width": {
"description": "Pixels",
"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.