Film kit command

effect.setKeyframe

Edit Keyframe

Changes the keyframe at `mediaTime`: its `value` and bezier in/out influence (0–1). `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.setKeyframe
NameTypeRequiredDescription
clipintegerno
effectstringnostr|index
inInfluencenumberno0 to 1
interpolationstringnoread by the command beside its listed parameters
maskintegerno
mediaTimeintegernoticks (254016000000 per second)
outInfluencenumberno0 to 1
paramstringno
tointegernoread by the command beside its listed parameters
valueanyno

Call through film_run

text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "effect.setKeyframe" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: clip, effect, inInfluence, interpolation, mask, mediaTime, outInfluence, param, 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"
    },
    "inInfluence": {
      "description": "0 to 1",
      "type": "number"
    },
    "interpolation": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "mask": {
      "type": "integer"
    },
    "mediaTime": {
      "description": "ticks (254016000000 per second)",
      "type": "integer"
    },
    "outInfluence": {
      "description": "0 to 1",
      "type": "number"
    },
    "param": {
      "type": "string"
    },
    "to": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "value": {}
  },
  "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.