Motion kit command

animation.reveal

Reveal Properties

Reveals (twirls open) properties on the selected layers, or all layers: `kind` keyframes (animated), animation (keys or expressions) or modified (changed from defaults). Returns the revealed property ids; changes no values.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of animation.reveal
NameTypeRequiredDescription
compinteger | stringnoread by the command beside its listed parameters
kind"keyframes" | "animation" | "modified"no

Call through motion_run

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

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

Result

Result of animation.reveal
NameTypeRequiredDescription
propsany[]no
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "props": {
      "items": {},
      "type": "array"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "comp": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "description": "comp's item id as motion_inspect lists it",
          "type": "integer"
        },
        {
          "description": "the item id as receipts print it (\"1\"), or the comp's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "kind": {
      "enum": [
        "keyframes",
        "animation",
        "modified"
      ],
      "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.