Motion kit command

file.exportMovie

Export Movie

Renders the active composition to H.264 MP4 through a scratch Render Queue item and returns it (base64 `data`, `mime`, `bytes`); only `format: mp4`. Writes no file and leaves the project's queue as it is: use <prefix>_export to save.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of file.exportMovie
NameTypeRequiredDescription
formatanynomp4

Call through motion_run

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

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

Result

Result of file.exportMovie
NameTypeRequiredDescription
bytesintegerno
datastringno
mimestringno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "bytes": {
      "type": "integer"
    },
    "data": {
      "type": "string"
    },
    "mime": {
      "type": "string"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "format": {
      "description": "mp4"
    }
  },
  "returns": "{data: base64, mime, bytes}",
  "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.