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’s on fills

Parameters

Parameters of layer.settings
NameTypeRequiredDescription
affectAllbooleannodefault true; false gives this layer its own copy of a solid other layers use
angleOfViewnumbernoread by the command beside its listed parameters
aperturenumbernoread by the command beside its listed parameters
blurLevelnumbernoread by the command beside its listed parameters
castsShadowsbooleannoread by the command beside its listed parameters
colorstringno
compinteger | stringnoread by the command beside its listed parameters
coneAnglenumbernoread by the command beside its listed parameters
coneFeathernumbernoread by the command beside its listed parameters
dofbooleannoread by the command beside its listed parameters
fStopnumbernoread by the command beside its listed parameters
falloffinteger | stringnoread by the command beside its listed parameters
falloffDistancenumbernoread by the command beside its listed parameters
focalLengthnumbernoread by the command beside its listed parameters
focusDistancenumbernoread by the command beside its listed parameters
heightnumberno
intensitynumbernoread by the command beside its listed parameters
layerinteger | stringno
lockToZoombooleannoread by the command beside its listed parameters
namestringno
pixelAspectnumberno
poiany[]noread by the command beside its listed parameters
positionany[]noread by the command beside its listed parameters
presetstringnoread by the command beside its listed parameters
radiusnumbernoread by the command beside its listed parameters
shadowDarknessnumbernoread by the command beside its listed parameters
shadowDiffusionnumbernoread by the command beside its listed parameters
typestringnoread by the command beside its listed parameters
widthnumberno
zoomnumbernoread by the command beside its listed parameters

Call through motion_run

text
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

json
{
  "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.