---
title: "transition.iris: Iris Transition — Motion kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/transition.iris"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/transition.iris](https://developer.kition.ai/docs/kits/motion/commands/transition.iris)

# 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); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: yes
- Acts on: `layer` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `center` | `number[] \| integer \| string` | no | [x, y] comp px, or a layer whose middle the iris follows |
| `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] |
| `feather` | `number` | no | pixels; mask feather, default 0 |
| `frames` | `number` | no | default 14 |
| `layer` | `integer \| string` | no | the incoming layer or precomp |
| `mask` | `integer` | no | read by the command beside its listed parameters |
| `ring` | `object \| boolean` | no | a stroke on the iris edge: {color?, width?} or true |
| `start` | `number` | no | seconds; 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/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
