---
title: "sequence.setTransition: Edit Transition Settings — Film kit command — Kition"
description: "Changes an applied `transition` by id: effect `params`, `reverse`, `reset` to defaults, and where it sits: `duration` (ticks) or `frames` resizes it as its alignment says, `align` (center, start, end) puts it on its cut, `start` (ticks) moves it, with `duration` one end. It stays over its cut and inside the clips it joins. `merge` makes a drag's calls one undo step (`begin` starts a new one). Answers its `start`, `duration` and `align`."
canonical: "https://developer.kition.ai/docs/kits/film/commands/sequence.setTransition"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/film/commands/sequence.setTransition](https://developer.kition.ai/docs/kits/film/commands/sequence.setTransition)

# sequence.setTransition

**Edit Transition Settings.** Changes an applied `transition` by id: effect `params`, `reverse`, `reset` to defaults, and where it sits: `duration` (ticks) or `frames` resizes it as its alignment says, `align` (center, start, end) puts it on its cut, `start` (ticks) moves it, with `duration` one end. It stays over its cut and inside the clips it joins. `merge` makes a drag's calls one undo step (`begin` starts a new one). Answers its `start`, `duration` and `align`.

- Kit: Film 0.1.0 (.kfilm); reference: [Film kit commands](https://developer.kition.ai/docs/kits/film.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `align` | `"center" \| "start" \| "end"` | no |  |
| `begin` | `boolean` | no |  |
| `duration` | `integer` | no | ticks (254016000000 per second) |
| `frames` | `integer` | no |  |
| `merge` | `boolean` | no |  |
| `params` | `object` | no |  |
| `reset` | `boolean` | no |  |
| `reverse` | `boolean` | no |  |
| `start` | `integer` | no | ticks (254016000000 per second) |
| `transition` | `integer` | no |  |

## Call through film_run

```text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "sequence.setTransition" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `align`, `begin`, `duration`, `frames`, `merge`, `params`, `reset`, `reverse`, `start`, `transition`. film_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": {
    "align": {
      "enum": [
        "center",
        "start",
        "end"
      ],
      "type": "string"
    },
    "begin": {
      "type": "boolean"
    },
    "duration": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "frames": {
      "type": "integer"
    },
    "merge": {
      "type": "boolean"
    },
    "params": {
      "additionalProperties": true,
      "properties": {
        "param": {}
      },
      "type": "object"
    },
    "reset": {
      "type": "boolean"
    },
    "reverse": {
      "type": "boolean"
    },
    "start": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "transition": {
      "type": "integer",
      "x-khp-types": [
        "Transition"
      ]
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/film-darwin-arm64@0.1.0 and the kit itself (film_commands through @kition/cli@0.1.1, built from KitionAI/kition-film@375db59).
