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

Parameters

Parameters of effect.setInterpolation
NameTypeRequiredDescription
clipintegerno
effectstringnostr|index
frameintegernoread by the command beside its listed parameters
inInfluencenumbernoread by the command beside its listed parameters
interpolation"linear" | "bezier" | "autoBezier" | "continuousBezier" | "hold" | "easeIn" | "easeOut"no
maskintegerno
mediaTimeintegernoticks (254016000000 per second)
outInfluencenumbernoread by the command beside its listed parameters
paramstringno
secondsnumbernothe time, in seconds (one spelling of it)
timeintegernoread by the command beside its listed parameters
timecodestringnothe time, as a timecode (one spelling of it)
tointegernoread by the command beside its listed parameters
valueanynoread 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.