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’s on fills

Parameters

Parameters of effect.setParam
NameTypeRequiredDescription
beginbooleanno
clipintegerno
effectstringno"motion"|index
frameintegernoone of several alternative parameters
maskintegerno
mergeanynobool|str?
paramstringno
secondsnumbernoone of several alternative parameters
timeintegernoticks (254016000000 per second); one of several alternative parameters
timecodestringnothe time, as a timecode (one spelling of it)
valueanynonum|[x,y]|"#rrggbb"|bool|path

Call through film_run

text
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

json
{
  "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.