Film kit command
effect.toggleAnimation
Toggle Animation
Turns keyframe animation of an effect parameter on (a keyframe at `time`, sequence ticks or `frame`/`seconds`, default the playhead) or off (removes its keyframes, keeping the value at that time).
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- yes
- Acts on
clip(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
clip | integer | no | |
effect | string | no | str|index |
frame | integer | no | one of several alternative parameters |
mask | integer | no | |
param | string | no | |
seconds | number | no | one of several alternative parameters |
time | integer | no | ticks (254016000000 per second); one of several alternative parameters |
timecode | string | no | the time, as a timecode (one spelling of it) |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "effect.toggleAnimation" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: clip, effect, frame, mask, param, seconds, time, timecode. film_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": {
"clip": {
"type": "integer",
"x-khp-types": [
"Clip"
]
},
"effect": {
"description": "str|index",
"type": "string"
},
"frame": {
"description": "one of several alternative parameters",
"type": "integer"
},
"mask": {
"type": "integer"
},
"param": {
"type": "string"
},
"seconds": {
"description": "one of several alternative parameters",
"type": "number"
},
"time": {
"description": "ticks (254016000000 per second); one of several alternative parameters",
"type": "integer"
},
"timecode": {
"description": "the time, as a timecode (one spelling of it)",
"type": "string"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (film_commands through @kition/[email protected], built from KitionAI/kition-film@375db59). As data: commands.jsonl.