Motion kit command

transition.iris

Iris Transition

Iris carry: a circular mask on the incoming `layer` opens from `center` (a comp point, or the middle of a layer it follows) over `frames` (14) until it reaches the farthest corner, so the next scene opens out of a subject; an Iris slider keyed 0 to 1 with `ease` drives the mask path expression; `ring` adds a shape layer stroking the iris edge. 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.iris
NameTypeRequiredDescription
centernumber[] | integer | stringno[x, y] comp px, or a layer whose middle the iris follows
compinteger | stringno
easestring | number[]noa curve name (snappy, out, smooth, swift, settle, pop, reseat, fly, linear) or [x1, y1, x2, y2]
feathernumbernopixels; mask feather, default 0
framesnumbernodefault 14
layerinteger | stringnothe incoming layer or precomp
maskintegernoread by the command beside its listed parameters
ringobject | booleannoa stroke on the iris edge: {color?, width?} or true
startnumbernoseconds; comp time; default the current time

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: center, comp, ease, feather, frames, layer, mask, ring, 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": {
    "center": {
      "description": "[x, y] comp px, or a layer whose middle the iris follows",
      "oneOf": [
        {
          "items": {
            "type": "number"
          },
          "type": "array"
        },
        {
          "description": "layer id or 1-based index",
          "type": "integer"
        },
        {
          "description": "layer name or #n",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "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"
        }
      ]
    },
    "feather": {
      "description": "pixels; mask feather, default 0",
      "type": "number"
    },
    "frames": {
      "description": "default 14",
      "type": "number"
    },
    "layer": {
      "description": "the incoming layer or precomp",
      "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"
      ]
    },
    "mask": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "ring": {
      "description": "a stroke on the iris edge: {color?, width?} or true",
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "color": {
              "description": "#rrggbb or [r, g, b] 0..1",
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "items": {
                    "type": "number"
                  },
                  "type": "array"
                }
              ]
            },
            "width": {
              "type": "number"
            }
          },
          "type": "object"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "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.