Film kit command

clip.makeSubclip

Make Subclip

Creates a subclip project item from a master `item` or timeline `clip` between start and end (ticks or frames), default the item's In/Out; `restrictTrims` keeps edits inside that range. Answers the new item.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of clip.makeSubclip
NameTypeRequiredDescription
clipintegerno
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
namestringno
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.makeSubclip" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: clip, end, endFrame, endSeconds, endTime, endTimecode, item, name, 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": {
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "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"
      ]
    },
    "name": {
      "type": "string"
    },
    "restrictTrims": {
      "default": true,
      "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.