Film kit command
effect.setParam
Set Effect Parameter
Sets `param` of `clip`'s `effect` ("motion", "opacity", a name or index) to `value`. With a `time` (sequence ticks; or `frame`, `seconds`, `timecode`) it sets a keyframe there, turning animation on if the parameter was static; without one it keys the playhead when the parameter is animated, else sets the static value. `param` is a parameter id or label, and a choice takes its option's name (any case) or index. `mask` targets a mask's parameter (a mask `path` in frame pixels). Motion's `scale_width` needs `uniform_scale` false (it is refused while Uniform Scale is on). `merge: true` makes a drag of this parameter one undo step; `merge` with a name makes every call with that name on the clip one undo step (a drag that changes several parameters); `begin` starts a new step.
- 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 |
|---|---|---|---|
begin | boolean | no | |
clip | integer | no | |
effect | string | no | "motion"|index |
frame | integer | no | one of several alternative parameters |
mask | integer | no | |
merge | any | no | bool|str? |
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) |
value | any | no | num|[x,y]|"#rrggbb"|bool|path |
Call through film_run
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "effect.setParam" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: begin, clip, effect, frame, mask, merge, param, seconds, time, timecode, value. film_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": {
"begin": {
"type": "boolean"
},
"clip": {
"type": "integer",
"x-khp-types": [
"Clip"
]
},
"effect": {
"description": "\"motion\"|index",
"type": "string"
},
"frame": {
"description": "one of several alternative parameters",
"type": "integer"
},
"mask": {
"type": "integer"
},
"merge": {
"description": "bool|str?"
},
"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"
},
"value": {
"description": "num|[x,y]|\"#rrggbb\"|bool|path"
}
},
"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.