Motion kit command
layer.settings
Layer Settings
Layer ▸ Layer Settings: cameras and lights open their own settings; solids (and adjustment layers, which are solids) edit their Solid Settings.
- 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 |
|---|---|---|---|
affectAll | boolean | no | default true; false gives this layer its own copy of a solid other layers use |
angleOfView | number | no | read by the command beside its listed parameters |
aperture | number | no | read by the command beside its listed parameters |
blurLevel | number | no | read by the command beside its listed parameters |
castsShadows | boolean | no | read by the command beside its listed parameters |
color | string | no | |
comp | integer | string | no | read by the command beside its listed parameters |
coneAngle | number | no | read by the command beside its listed parameters |
coneFeather | number | no | read by the command beside its listed parameters |
dof | boolean | no | read by the command beside its listed parameters |
fStop | number | no | read by the command beside its listed parameters |
falloff | integer | string | no | read by the command beside its listed parameters |
falloffDistance | number | no | read by the command beside its listed parameters |
focalLength | number | no | read by the command beside its listed parameters |
focusDistance | number | no | read by the command beside its listed parameters |
height | number | no | |
intensity | number | no | read by the command beside its listed parameters |
layer | integer | string | no | |
lockToZoom | boolean | no | read by the command beside its listed parameters |
name | string | no | |
pixelAspect | number | no | |
poi | any[] | no | read by the command beside its listed parameters |
position | any[] | no | read by the command beside its listed parameters |
preset | string | no | read by the command beside its listed parameters |
radius | number | no | read by the command beside its listed parameters |
shadowDarkness | number | no | read by the command beside its listed parameters |
shadowDiffusion | number | no | read by the command beside its listed parameters |
type | string | no | read by the command beside its listed parameters |
width | number | no | |
zoom | number | no | read by the command beside its listed parameters |
Call through motion_run
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "layer.settings" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: affectAll, angleOfView, aperture, blurLevel, castsShadows, color, comp, coneAngle, coneFeather, dof, fStop, falloff, falloffDistance, focalLength, focusDistance, height, intensity, layer, lockToZoom, name, pixelAspect, poi, position, preset, radius, shadowDarkness, shadowDiffusion, type, width, zoom. motion_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"affectAll": {
"description": "default true; false gives this layer its own copy of a solid other layers use",
"type": "boolean"
},
"angleOfView": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"aperture": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"blurLevel": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"castsShadows": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
},
"color": {
"type": "string"
},
"comp": {
"description": "read by the command beside its listed parameters",
"oneOf": [
{
"description": "comp's item id as motion_inspect lists it",
"type": "integer"
},
{
"description": "the item id as receipts print it (\"1\"), or the comp's name",
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-types": [
"Item"
]
},
"coneAngle": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"coneFeather": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"dof": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
},
"fStop": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"falloff": {
"description": "read by the command beside its listed parameters",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"falloffDistance": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"focalLength": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"focusDistance": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"height": {
"type": "number"
},
"intensity": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"layer": {
"oneOf": [
{
"description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
"type": "integer"
},
{
"description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
"type": "string"
}
],
"x-khp-index": "#",
"x-khp-index-numbers": true,
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"lockToZoom": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
},
"name": {
"type": "string"
},
"pixelAspect": {
"type": "number"
},
"poi": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"position": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"preset": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"radius": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"shadowDarkness": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"shadowDiffusion": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"type": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"width": {
"type": "number"
},
"zoom": {
"description": "read by the command beside its listed parameters",
"type": "number"
}
},
"returns": "{layer, solid?}",
"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.