Motion kit command

file.interpretFootage

Main

Sets how footage `items` (default selected) is read: `frameRate`, `alpha` (straight, premultiplied, ignore, guess), `invertAlpha`, `loop`, `pixelAspect`, `fields`, `colorProfile`, `linearLight`, start timecode. Layers using it change accordingly.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
yes

Parameters

Parameters of file.interpretFootage
NameTypeRequiredDescription
alpha"straight" | "premultiplied" | "ignore" | "guess"no
colorProfile"srgb" | "rec709" | "rec2020" | "p3" | "auto"no
fields"off" | "upper" | "lower"no
frameRateanynofps|"file"
guessAlphabooleanno
invertAlphabooleanno
itemintegernoread by the command beside its listed parameters
itemsinteger[]no
linearLightbooleanno
loopanyno
matteColoranyno
overrideStartbooleannofalse: Use Source File Timecode
pixelAspectnumberno
preserveRgbbooleannothe file's values unconverted
startTimecodestringnotimecode|frame (Override Start); Override Start

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "file.interpretFootage" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: alpha, colorProfile, fields, frameRate, guessAlpha, invertAlpha, item, items, linearLight, loop, matteColor, overrideStart, pixelAspect, preserveRgb, startTimecode. motion_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": {
    "alpha": {
      "enum": [
        "straight",
        "premultiplied",
        "ignore",
        "guess"
      ],
      "type": "string"
    },
    "colorProfile": {
      "enum": [
        "srgb",
        "rec709",
        "rec2020",
        "p3",
        "auto"
      ],
      "type": "string"
    },
    "fields": {
      "enum": [
        "off",
        "upper",
        "lower"
      ],
      "type": "string"
    },
    "frameRate": {
      "description": "fps|\"file\""
    },
    "guessAlpha": {
      "type": "boolean"
    },
    "invertAlpha": {
      "type": "boolean"
    },
    "item": {
      "description": "read by the command beside its listed parameters",
      "type": "integer",
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "items": {
      "items": {
        "type": "integer",
        "x-khp-name": "name",
        "x-khp-role": "object",
        "x-khp-types": [
          "Item"
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "linearLight": {
      "type": "boolean"
    },
    "loop": {},
    "matteColor": {},
    "overrideStart": {
      "description": "false: Use Source File Timecode",
      "type": "boolean"
    },
    "pixelAspect": {
      "type": "number"
    },
    "preserveRgb": {
      "description": "the file's values unconverted",
      "type": "boolean"
    },
    "startTimecode": {
      "description": "timecode|frame (Override Start); Override Start",
      "type": "string"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.