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’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
comp | integer | string | no | |
degrees | number | no | degrees; orbit sweep, 30 |
direction | number[] | no | parallax, default [-1, 0] |
distance | number | no | pixels; parallax travel of a speed-1 layer, 600 |
dx | number | no | read by the command beside its listed parameters |
dy | number | no | read by the command beside its listed parameters |
ease | string | number[] | no | a curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2] |
farBlur | number | no | pixels; 5 |
farDesaturate | number | no | 0.7 |
frames | number | no | pushHover total 66, craneRise 102, orbit 90, parallax 90 |
from | number | no | start scale: pushHover 0.8, craneRise 3 |
layer | integer | string | no | read by the command beside its listed parameters |
layers | (integer | string)[] | no | layer ids, names or #n |
motionBlur | boolean | no | moving layers get motion blur, shutter 180, 10 samples; default true |
name | string | no | |
nearBlur | number | no | pixels; 7 |
point | number[] | no | comp px, instead of target |
preset | "pushHover" | "craneRise" | "orbit" | "parallax" | no | |
pushFrames | number | no | pushHover in and out, 18 |
rotX | number | no | degrees; pushHover 8, craneRise -8, orbit 0 |
rotY | number | no | degrees; pushHover 34 |
scale | number | no | pushHover 2.6, craneRise 1, orbit 1 |
speeds | number[] | no | parallax, default 0.35, 0.7, 1.4 |
start | number | no | seconds; comp time; default the current time |
target | integer | string | no | the layer the camera works around |
tracker | integer | string | no | read by the command beside its listed parameters |
Call through motion_run
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
{
"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.