Film kit command

transition.beatCut

Beat Cut Transitions

Cuts picture on the beat as one undo step: puts a video transition centred on every cut between two clips that lies within `toleranceFrames` (1) of a beat of the sequence's music (or of a sequence marker when no audio clip has a beat; `onBeat: false` takes every cut), or only on the cuts into `clips`, or at the `at` frames (taken as given). `effect` is whip, flash, push, crossZoom, cut (no transition, sound only) or any video transition id, or a list used in turn; `frames` sets the length (whip 8, flash 6, push 10, crossZoom 10); `params` are transition parameters, each effect taking the ones it has (booleans for amounts such as motion_blur, left/right/up/down for direction). `sfx` (a sound item or a list used in turn) drops a whoosh or impact peak-aligned to each cut at `sfxGainDb` (−6.9 dB, ≈0.45) on a free audio track. Answers `cuts` [{frame, track, effect, transition, frames, sfx}] and `skipped` cuts with the reason.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes
Acts on
clips (a list of ids), which a run step’s on fills

Parameters

Parameters of transition.beatCut
NameTypeRequiredDescription
atinteger[]nocuts at these frames; one of several alternative parameters
clipsinteger[]nocuts into these clips; one of several alternative parameters
effectanyno"whip"|"flash"|"push"|"crossZoom"|"cut"|id|[names, used in turn]="whip"; default "whip"
framesintegernowhip 8, flash 6, push 10, crossZoom 10
onBeatbooleanno
paramsobjectno
sfxinteger | integer[]noproject sound item id, or ids used in turn
sfxGainDbnumbernoone of several alternative parameters
sfxVolumenumbernoone of several alternative parameters
toleranceFramesintegerno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: at, clips, effect, frames, onBeat, params, sfx, sfxGainDb, sfxVolume, toleranceFrames. 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": {
    "at": {
      "description": "cuts at these frames; one of several alternative parameters",
      "items": {
        "description": "frames",
        "type": "integer"
      },
      "type": "array"
    },
    "clips": {
      "description": "cuts into these clips; one of several alternative parameters",
      "items": {
        "description": "an id",
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Clip"
      ]
    },
    "effect": {
      "description": "\"whip\"|\"flash\"|\"push\"|\"crossZoom\"|\"cut\"|id|[names, used in turn]=\"whip\"; default \"whip\""
    },
    "frames": {
      "description": "whip 8, flash 6, push 10, crossZoom 10",
      "type": "integer"
    },
    "onBeat": {
      "default": true,
      "type": "boolean"
    },
    "params": {
      "additionalProperties": true,
      "properties": {
        "param": {}
      },
      "type": "object"
    },
    "sfx": {
      "description": "project sound item id, or ids used in turn",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        }
      ],
      "x-khp-types": [
        "Item"
      ]
    },
    "sfxGainDb": {
      "default": -6.9,
      "description": "one of several alternative parameters",
      "type": "number"
    },
    "sfxVolume": {
      "description": "one of several alternative parameters",
      "type": "number"
    },
    "toleranceFrames": {
      "default": 1,
      "type": "integer"
    }
  },
  "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.