Motion kit command
light.environmentBackground
Create Environment Light Background Layer
Create Environment Light Background Layer: a layer showing the environment light's image as the scene's backdrop (an equirectangular sky drawn through the camera).
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
- Acts on
layer(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
comp | integer | string | no | |
layer | integer | string | no | environment light (default selected / first); default selected / first |
layers | any[] | no | read by the command beside its listed parameters |
on | boolean | no | read by the command beside its listed parameters |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "light.environmentBackground" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: comp, layer, layers, on. motion_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": {
"comp": {
"oneOf": [
{
"description": "item id",
"type": "integer"
},
{
"description": "comp name",
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Item"
]
},
"layer": {
"description": "environment light (default selected / first); default selected / first",
"oneOf": [
{
"description": "layer id or 1-based index",
"type": "integer"
},
{
"description": "layer name or #n",
"type": "string"
}
],
"x-khp-index": "#",
"x-khp-index-numbers": true,
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"layers": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"on": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.