Motion kit command
transition.zoomThrough
Zoom Through Transition
Zoom-through carry: the outgoing `layer` pushes into `target` with its scale keyed every frame in log space (ease-in) until the area of `size` px around the point fills the frame, then crosses over `blend` frames (the upper layer fades, the lower cuts) into `toLayer`, which continues from `overshoot` (1.25x) and settles to its own scale over `settleFrames`; motion blur on. One undo step.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
- Acts on
layer(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
blend | number | no | frames the upper layer fades over once the frame is filled, default 2 |
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 | the push, default 12 |
layer | integer | string | no | the outgoing layer |
motionBlur | boolean | no | default true |
overshoot | number | no | incoming start scale, default 1.25 |
settleEase | string | number[] | no | a curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2] |
settleFrames | number | no | default 16 |
size | number | no | pixels; the area around the target that fills the frame at the end of the push, default 48 |
start | number | no | seconds; comp time; default the current time |
target | number[] | no | [x, y] comp px: the point pushed into |
toLayer | integer | string | no | the incoming layer |
Call through motion_run
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "transition.zoomThrough" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: blend, comp, ease, frames, layer, motionBlur, overshoot, settleEase, settleFrames, size, start, target, toLayer. 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": {
"blend": {
"description": "frames the upper layer fades over once the frame is filled, default 2",
"type": "number"
},
"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": "the push, default 12",
"type": "number"
},
"layer": {
"description": "the outgoing layer",
"oneOf": [
{
"description": "layer id or 1-based index",
"type": "integer"
},
{
"description": "layer name or #n",
"type": "string"
}
],
"x-khp-index": "#",
"x-khp-index-numbers": true,
"x-khp-name": "name",
"x-khp-types": [
"Layer"
]
},
"motionBlur": {
"description": "default true",
"type": "boolean"
},
"overshoot": {
"description": "incoming start scale, default 1.25",
"type": "number"
},
"settleEase": {
"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"
}
]
},
"settleFrames": {
"description": "default 16",
"type": "number"
},
"size": {
"description": "pixels; the area around the target that fills the frame at the end of the push, default 48",
"type": "number"
},
"start": {
"description": "seconds; comp time; default the current time",
"type": "number"
},
"target": {
"description": "[x, y] comp px: the point pushed into",
"items": {
"type": "number"
},
"type": "array"
},
"toLayer": {
"description": "the incoming layer",
"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"
]
}
},
"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.