Motion kit command

layer.gather

Gather

Gathers `layers` into a ring of `radius` around `center`: each flies along a spiral arc that sweeps about `arc` degrees into its slot, `stagger` frames after the one before, over `frames` with `ease`; Position keyed every frame, motion blur on. One undo step.

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 layer.gather
NameTypeRequiredDescription
arcnumbernodegrees; how far each spirals around, default 90; negative turns the other way
centernumber[]no[x, y] ring centre (comp px)
compinteger | stringno
easestring | number[]noa curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]
framesnumbernoeach layer's flight, default 30
layers(integer | string)[]nolayer ids, names or #n
motionBlurbooleannodefault true
radiusnumbernopixels; default 120
staggernumbernoframes between layers, default 2
startnumbernoseconds; comp time; default the current time

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: arc, center, comp, ease, frames, layers, motionBlur, radius, stagger, start. 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": {
    "arc": {
      "description": "degrees; how far each spirals around, default 90; negative turns the other way",
      "type": "number"
    },
    "center": {
      "description": "[x, y] ring centre (comp px)",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "comp": {
      "oneOf": [
        {
          "description": "item id",
          "type": "integer"
        },
        {
          "description": "comp name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "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"
        }
      ]
    },
    "frames": {
      "description": "each layer's flight, default 30",
      "type": "number"
    },
    "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": "default true",
      "type": "boolean"
    },
    "radius": {
      "description": "pixels; default 120",
      "type": "number"
    },
    "stagger": {
      "description": "frames between layers, default 2",
      "type": "number"
    },
    "start": {
      "description": "seconds; comp time; default the current time",
      "type": "number"
    }
  },
  "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.