Motion kit command
camera.orbitNull
Create Orbit Null
Create Orbit Null: a 3D null at the camera's point of interest becomes the camera's parent, so rotating the null orbits the camera around what it looks at.
- 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 |
|---|---|---|---|
camera | integer | no | read by the command beside its listed parameters |
comp | integer | string | no | |
layer | integer | string | no | camera (default selected/active); default selected/active |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "camera.orbitNull" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: camera, comp, layer. 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": {
"camera": {
"description": "read by the command beside its listed parameters",
"type": "integer",
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"comp": {
"oneOf": [
{
"description": "item id",
"type": "integer"
},
{
"description": "comp name",
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Item"
]
},
"layer": {
"description": "camera (default selected/active); default selected/active",
"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"
]
}
},
"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.