Motion kit command
file.replaceWithPlaceholder
Placeholder
Turns footage `item` into a placeholder with its size, frame rate and duration (override with `width`, `height`, `frameRate`, `duration`), keeping the layers that use it.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
duration | number | no | |
frameRate | number | no | |
height | number | no | |
item | integer | no | |
items | (integer | string)[] | no | read by the command beside its listed parameters |
width | number | no |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "file.replaceWithPlaceholder" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: duration, frameRate, height, item, items, width. motion_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"duration": {
"type": "number"
},
"frameRate": {
"type": "number"
},
"height": {
"type": "number"
},
"item": {
"type": "integer",
"x-khp-name": "name",
"x-khp-types": [
"Item"
]
},
"items": {
"description": "read by the command beside its listed parameters",
"items": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-khp-name": "name",
"x-khp-role": "object",
"x-khp-types": [
"Item"
]
},
"type": "array",
"x-khp-types": [
"Item"
]
},
"width": {
"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.