Motion kit command
keyframe.transform
Transform Keyframes
Transform the selected keys: times scale about `timeAnchor` (comp seconds, default the first selected key) by `timeScale` and move by `timeOffset`; values scale about `valueAnchor` by `valueScale` and move by `valueOffset` (every dimension, or only `dim`). Times land on frames.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dim | any[] | no | one of several alternative parameters |
dims | any[] | no | one of several alternative parameters |
fromStart | boolean | no | with merge: values are the whole transform since the drag started |
merge | string | no | |
timeAnchor | number | no | comp s |
timeOffset | number | no | s |
timeScale | number | no | |
valueAnchor | number | no | |
valueOffset | number | no | |
valueScale | number | no |
Call through motion_run
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "keyframe.transform" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: dim, dims, fromStart, merge, timeAnchor, timeOffset, timeScale, valueAnchor, valueOffset, valueScale. motion_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"dim": {
"description": "one of several alternative parameters",
"type": "array"
},
"dims": {
"description": "one of several alternative parameters",
"type": "array"
},
"fromStart": {
"description": "with merge: values are the whole transform since the drag started",
"type": "boolean"
},
"merge": {
"type": "string"
},
"timeAnchor": {
"description": "comp s",
"type": "number"
},
"timeOffset": {
"description": "s",
"type": "number"
},
"timeScale": {
"type": "number"
},
"valueAnchor": {
"type": "number"
},
"valueOffset": {
"type": "number"
},
"valueScale": {
"type": "number"
}
},
"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.