Motion kit command
keyframe.select
Select Keyframes
Selects keyframes: `keys` [{layer, prop uid or path such as transform/position, time}], times in layer seconds unless `timeBase: comp`; `add`/`toggle` extend the selection. Fails on keys that don't exist. Most keys.* commands act on this selection.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
add | boolean | no | |
keys | object[] | no | [{layer, prop: uid | path (or `path`), time (layer s by default)}]; or `path`; layer s by default |
selectProperties | boolean | no | their properties and layers too, as a Timeline click does |
timeBase | "layer" | "comp" | no | |
toggle | boolean | no | Shift+click: in or out of the selection |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "keyframe.select" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: add, keys, selectProperties, timeBase, toggle. motion_run answers the step’s result in completed[i].result.
Result
Result JSON Schema
json
{
"type": "integer"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"add": {
"type": "boolean"
},
"keys": {
"description": "[{layer, prop: uid | path (or `path`), time (layer s by default)}]; or `path`; layer s by default",
"items": {
"additionalProperties": true,
"properties": {
"layer": {
"oneOf": [
{
"description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
"type": "integer"
},
{
"description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-role": "object",
"x-khp-types": [
"Layer"
]
},
"prop": {
"description": "uid | path"
},
"time": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"selectProperties": {
"description": "their properties and layers too, as a Timeline click does",
"type": "boolean"
},
"timeBase": {
"enum": [
"layer",
"comp"
],
"type": "string"
},
"toggle": {
"description": "Shift+click: in or out of the selection",
"type": "boolean"
}
},
"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.