Motion kit command

camera.move

Camera Move

Adds a promo camera move from `start`: pushHover (the view pushes from 0.8x to 2.6x onto `target` in 18 frames while the rig turns 34 degrees Y and 8 X, hovers, then returns), craneRise (3x to 1x over 102 frames after a 1.5% anticipation push, rising), orbit (the rig turns `degrees` with continuous, monotone velocity through its keys) on a new camera parented to a 3D null at the target (target layers made 3D); or parallax: `layers` far to near pan at `speeds` 0.35/0.7/1.4 with blur 5 + 70% desaturation on the far one and blur 7 on the near one. One undo step; answers the camera and rig.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes
Acts on
layers (a list of ids), which a run step’s on fills

Parameters

Parameters of camera.move
NameTypeRequiredDescription
compinteger | stringno
degreesnumbernodegrees; orbit sweep, 30
directionnumber[]noparallax, default [-1, 0]
distancenumbernopixels; parallax travel of a speed-1 layer, 600
dxnumbernoread by the command beside its listed parameters
dynumbernoread by the command beside its listed parameters
easestring | number[]noa curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]
farBlurnumbernopixels; 5
farDesaturatenumberno0.7
framesnumbernopushHover total 66, craneRise 102, orbit 90, parallax 90
fromnumbernostart scale: pushHover 0.8, craneRise 3
layerinteger | stringnoread by the command beside its listed parameters
layers(integer | string)[]nolayer ids, names or #n
motionBlurbooleannomoving layers get motion blur, shutter 180, 10 samples; default true
namestringno
nearBlurnumbernopixels; 7
pointnumber[]nocomp px, instead of target
preset"pushHover" | "craneRise" | "orbit" | "parallax"no
pushFramesnumbernopushHover in and out, 18
rotXnumbernodegrees; pushHover 8, craneRise -8, orbit 0
rotYnumbernodegrees; pushHover 34
scalenumbernopushHover 2.6, craneRise 1, orbit 1
speedsnumber[]noparallax, default 0.35, 0.7, 1.4
startnumbernoseconds; comp time; default the current time
targetinteger | stringnothe layer the camera works around
trackerinteger | stringnoread by the command beside its listed parameters

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "camera.move" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: comp, degrees, direction, distance, dx, dy, ease, farBlur, farDesaturate, frames, from, layer, layers, motionBlur, name, nearBlur, point, preset, pushFrames, rotX, rotY, scale, speeds, start, target, tracker. 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"
      ]
    },
    "degrees": {
      "description": "degrees; orbit sweep, 30",
      "type": "number"
    },
    "direction": {
      "description": "parallax, default [-1, 0]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "distance": {
      "description": "pixels; parallax travel of a speed-1 layer, 600",
      "type": "number"
    },
    "dx": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "dy": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "ease": {
      "description": "a curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      ]
    },
    "farBlur": {
      "description": "pixels; 5",
      "type": "number"
    },
    "farDesaturate": {
      "description": "0.7",
      "type": "number"
    },
    "frames": {
      "description": "pushHover total 66, craneRise 102, orbit 90, parallax 90",
      "type": "number"
    },
    "from": {
      "description": "start scale: pushHover 0.8, craneRise 3",
      "type": "number"
    },
    "layer": {
      "description": "read by the command beside its listed parameters",
      "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"
        }
      ]
    },
    "layers": {
      "description": "layer ids, names or #n",
      "items": {
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-index": "#",
      "x-khp-index-numbers": true,
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "motionBlur": {
      "description": "moving layers get motion blur, shutter 180, 10 samples; default true",
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "nearBlur": {
      "description": "pixels; 7",
      "type": "number"
    },
    "point": {
      "description": "comp px, instead of target",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "preset": {
      "enum": [
        "pushHover",
        "craneRise",
        "orbit",
        "parallax"
      ],
      "type": "string"
    },
    "pushFrames": {
      "description": "pushHover in and out, 18",
      "type": "number"
    },
    "rotX": {
      "description": "degrees; pushHover 8, craneRise -8, orbit 0",
      "type": "number"
    },
    "rotY": {
      "description": "degrees; pushHover 34",
      "type": "number"
    },
    "scale": {
      "description": "pushHover 2.6, craneRise 1, orbit 1",
      "type": "number"
    },
    "speeds": {
      "description": "parallax, default 0.35, 0.7, 1.4",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "start": {
      "description": "seconds; comp time; default the current time",
      "type": "number"
    },
    "target": {
      "description": "the layer the camera works around",
      "oneOf": [
        {
          "description": "layer id or 1-based index",
          "type": "integer"
        },
        {
          "description": "layer name or #n",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "tracker": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "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.