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’s on fills

Parameters

Parameters of transition.zoomThrough
NameTypeRequiredDescription
blendnumbernoframes the upper layer fades over once the frame is filled, default 2
compinteger | stringno
easestring | number[]noa curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]
framesnumbernothe push, default 12
layerinteger | stringnothe outgoing layer
motionBlurbooleannodefault true
overshootnumbernoincoming start scale, default 1.25
settleEasestring | number[]noa curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]
settleFramesnumbernodefault 16
sizenumbernopixels; the area around the target that fills the frame at the end of the push, default 48
startnumbernoseconds; comp time; default the current time
targetnumber[]no[x, y] comp px: the point pushed into
toLayerinteger | stringnothe incoming layer

Call through motion_run

text
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

json
{
  "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.