Motion kit command

item.metadata

Metadata

Returns metadata for the project (name, path, item and comp counts, bit depth, working space, time display) and, when `item` (id or name) is given, for that item (type, size, label, comment and its own fields).

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of item.metadata
NameTypeRequiredDescription
itemintegernoid|name

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: item. motion_run answers the step’s result in completed[i].result.

Result

Result of item.metadata
NameTypeRequiredDescription
itemobjectno
projectobjectno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "item": {
      "additionalProperties": true,
      "properties": {
        "comment": {
          "type": "string"
        },
        "duration": {
          "type": "number"
        },
        "frameRate": {
          "type": "number"
        },
        "height": {
          "type": "integer"
        },
        "id": {
          "type": "integer"
        },
        "label": {
          "type": "string"
        },
        "layers": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "pixelAspect": {
          "type": "number"
        },
        "type": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "workArea": {
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "project": {
      "additionalProperties": true,
      "properties": {
        "audioSampleRate": {
          "type": "integer"
        },
        "bitDepth": {
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "compositions": {
          "type": "integer"
        },
        "folders": {
          "type": "integer"
        },
        "footage": {
          "type": "integer"
        },
        "items": {
          "type": "integer"
        },
        "linearize": {
          "type": "boolean"
        },
        "path": {},
        "renderQueue": {
          "type": "integer"
        },
        "solids": {
          "type": "integer"
        },
        "timeDisplay": {
          "type": "string"
        },
        "workingSpace": {}
      },
      "type": "object"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "item": {
      "description": "id|name",
      "type": "integer",
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    }
  },
  "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.