Scene kit command
world.set
World Settings
Sets the world background color and strength, rotation and volume.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
color | number[] | string | no | Background colour |
rotation | number | no | Degrees the world image is turned about the up axis |
strength | number | no | How strongly it (or its image) lights the scene |
volume | integer | string | null | no | A shader group (id or name) whose Volume fills the world in path-traced renders, or null for none |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "world.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: color, rotation, strength, volume. 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": {
"color": {
"description": "Background colour",
"oneOf": [
{
"description": "[r, g, b] or [r, g, b, a], linear, 0 to 1",
"items": {
"type": "number"
},
"type": "array"
},
{
"description": "#rrggbb (sRGB)",
"type": "string"
}
]
},
"rotation": {
"description": "Degrees the world image is turned about the up axis",
"type": "number"
},
"strength": {
"description": "How strongly it (or its image) lights the scene",
"type": "number"
},
"volume": {
"description": "A shader group (id or name) whose Volume fills the world in path-traced renders, or null for none",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
},
{
"type": "null"
}
],
"x-khp-name": "name",
"x-khp-types": [
"NodeGroup"
]
}
},
"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.