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’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
arc | number | no | degrees; how far each spirals around, default 90; negative turns the other way |
center | number[] | no | [x, y] ring centre (comp px) |
comp | integer | string | no | |
ease | string | number[] | no | a curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2] |
frames | number | no | each layer's flight, default 30 |
layers | (integer | string)[] | no | layer ids, names or #n |
motionBlur | boolean | no | default true |
radius | number | no | pixels; default 120 |
stagger | number | no | frames between layers, default 2 |
start | number | no | seconds; comp time; default the current time |
Call through motion_run
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
{
"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.