Film kit command
effect.setInterpolation
Keyframe Interpolation
Sets the interpolation of the keyframe at `mediaTime`: linear, bezier, autoBezier, continuousBezier, hold, easeIn or easeOut (an unknown name is refused). `mask` targets a mask's parameter.
- 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 | read by the command beside its listed parameters |
inInfluence | number | no | read by the command beside its listed parameters |
interpolation | "linear" | "bezier" | "autoBezier" | "continuousBezier" | "hold" | "easeIn" | "easeOut" | no | |
mask | integer | no | |
mediaTime | integer | no | ticks (254016000000 per second) |
outInfluence | number | no | read by the command beside its listed parameters |
param | string | no | |
seconds | number | no | the time, in seconds (one spelling of it) |
time | integer | no | read by the command beside its listed parameters |
timecode | string | no | the time, as a timecode (one spelling of it) |
to | integer | no | read by the command beside its listed parameters |
value | any | no | read by the command beside its listed parameters |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "effect.setInterpolation" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: clip, effect, frame, inInfluence, interpolation, mask, mediaTime, outInfluence, param, seconds, time, timecode, to, value. 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": "read by the command beside its listed parameters",
"type": "integer"
},
"inInfluence": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"interpolation": {
"enum": [
"linear",
"bezier",
"autoBezier",
"continuousBezier",
"hold",
"easeIn",
"easeOut"
],
"type": "string"
},
"mask": {
"type": "integer"
},
"mediaTime": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"outInfluence": {
"description": "read by the command beside its listed parameters",
"type": "number"
},
"param": {
"type": "string"
},
"seconds": {
"description": "the time, in seconds (one spelling of it)",
"type": "number"
},
"time": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"timecode": {
"description": "the time, as a timecode (one spelling of it)",
"type": "string"
},
"to": {
"description": "read by the command beside its listed parameters",
"type": "integer"
},
"value": {
"description": "read by the command beside its listed parameters"
}
},
"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.