Film kit command

sequence.applyVideoTransition

Apply Video Transition

Applies a video transition (`effect` e.g. cross_dissolve, `frames` long, default from preferences) at the edit nearest the playhead on targeted tracks, or at `clip`'s `edge`; between two clips `align` puts it centred on the cut (default), starting or ending there; `params` and `reverse` set it up. Its length is kept inside the clips it joins.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes
Acts on
clip (one id), which a run step’s on fills

Parameters

Parameters of sequence.applyVideoTransition
NameTypeRequiredDescription
align"center" | "start" | "end"no
clipintegerno
edge"in" | "out"no
effectstringnofor example cross_dissolve, Cross Dissolve
framesintegerno
paramsobjectno
reversebooleanno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: align, clip, edge, effect, frames, params, reverse. 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"
    },
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "edge": {
      "enum": [
        "in",
        "out"
      ],
      "type": "string"
    },
    "effect": {
      "description": "for example cross_dissolve, Cross Dissolve",
      "type": "string"
    },
    "frames": {
      "type": "integer"
    },
    "params": {
      "additionalProperties": true,
      "properties": {
        "param": {}
      },
      "type": "object"
    },
    "reverse": {
      "type": "boolean"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.