Film kit command

clip.editSubclip

Edit Subclip

Changes an existing subclip `item`'s start/end (ticks or frames of its master), `restrictTrims`, or converts it back to a master clip with `convertToMaster`.

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

Parameters

Parameters of clip.editSubclip
NameTypeRequiredDescription
convertToMasterbooleanno
endintegernoticks (254016000000 per second)
endFrameintegerno
endSecondsnumbernothe end time, in seconds (one spelling of it)
endTimeintegernothe end time, in ticks (one spelling of it)
endTimecodestringnothe end time, as a timecode (one spelling of it)
itemintegerno
restrictTrimsbooleanno
startintegernoticks (254016000000 per second)
startFrameintegerno
startSecondsnumbernothe start time, in seconds (one spelling of it)
startTimeintegernothe start time, in ticks (one spelling of it)
startTimecodestringnothe start time, as a timecode (one spelling of it)

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: convertToMaster, end, endFrame, endSeconds, endTime, endTimecode, item, restrictTrims, start, startFrame, startSeconds, startTime, startTimecode. 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": {
    "convertToMaster": {
      "type": "boolean"
    },
    "end": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "endFrame": {
      "type": "integer"
    },
    "endSeconds": {
      "description": "the end time, in seconds (one spelling of it)",
      "type": "number"
    },
    "endTime": {
      "description": "the end time, in ticks (one spelling of it)",
      "type": "integer"
    },
    "endTimecode": {
      "description": "the end time, as a timecode (one spelling of it)",
      "type": "string"
    },
    "item": {
      "type": "integer",
      "x-khp-types": [
        "Item"
      ]
    },
    "restrictTrims": {
      "type": "boolean"
    },
    "start": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "startFrame": {
      "type": "integer"
    },
    "startSeconds": {
      "description": "the start time, in seconds (one spelling of it)",
      "type": "number"
    },
    "startTime": {
      "description": "the start time, in ticks (one spelling of it)",
      "type": "integer"
    },
    "startTimecode": {
      "description": "the start time, as a timecode (one spelling of it)",
      "type": "string"
    }
  },
  "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.