Motion kit command

project.usage

Project Item Usage

Returns what deleting `items` (default selected) would remove: the item count including folder contents, and the layers and compositions that use them. Changes nothing.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of project.usage
NameTypeRequiredDescription
itemintegernoread by the command beside its listed parameters
items(integer | string)[]no[id|name] (default: selected); default: selected

Call through motion_run

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

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

Result

Result of project.usage
NameTypeRequiredDescription
compsintegerno
itemsintegerno
layersintegerno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "comps": {
      "type": "integer"
    },
    "items": {
      "type": "integer"
    },
    "layers": {
      "type": "integer"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "item": {
      "description": "read by the command beside its listed parameters",
      "type": "integer",
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "items": {
      "description": "[id|name] (default: selected); default: selected",
      "items": {
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ],
        "x-khp-name": "name",
        "x-khp-role": "object",
        "x-khp-types": [
          "Item"
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    }
  },
  "returns": "{items, layers, comps} that deleting them removes",
  "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.