Film kit command

timeline.move

Move Clips

Moves clips to new tracks and times in one step: `moves` lists {clip, track, time ticks}. `insert: true` pushes clips at the destination right; otherwise it overwrites. Linked partners follow unless `linked: false`. `copy: true` copies the clips there instead and leaves them where they are (the answer's `copied` names the copies). `snap` ("markers", "beats" or both) lands the earliest clip on the nearest sequence marker or music beat within `toleranceFrames` (3) and moves the rest by as much; the answer's `snapped` says {from, to}.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of timeline.move
NameTypeRequiredDescription
copybooleanno
insertbooleanno
linkedbooleanno
movesobject[]no[{"clip":id,"track":id|"V2","time":ticks}]
snapanyno"markers"|"beats"|["markers","beats"]?
toleranceFramesintegerno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: copy, insert, linked, moves, snap, 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": {
    "copy": {
      "type": "boolean"
    },
    "insert": {
      "type": "boolean"
    },
    "linked": {
      "type": "boolean"
    },
    "moves": {
      "description": "[{\"clip\":id,\"track\":id|\"V2\",\"time\":ticks}]",
      "items": {
        "additionalProperties": true,
        "properties": {
          "clip": {
            "description": "an id",
            "type": "integer",
            "x-khp-role": "object",
            "x-khp-types": [
              "Clip"
            ]
          },
          "time": {
            "description": "ticks (254016000000 per second)",
            "type": "integer"
          },
          "track": {
            "description": "destination track id or V1/A1 ordinal",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "x-khp-role": "object",
            "x-khp-types": [
              "Track"
            ]
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "snap": {
      "description": "\"markers\"|\"beats\"|[\"markers\",\"beats\"]?"
    },
    "toleranceFrames": {
      "default": 3,
      "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.