Film kit command

effect.addKeyframe

Add/Remove Keyframe

Adds a keyframe of an effect parameter at `time` (sequence ticks, default playhead) with its current value, or removes it if one is there. `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.addKeyframe
NameTypeRequiredDescription
clipintegerno
effectstringnostr|index
frameintegernoread by the command beside its listed parameters
inInfluencenumbernoread by the command beside its listed parameters
interpolationstringnoread by the command beside its listed parameters
maskintegerno
mediaTimeintegernoread by the command beside its listed parameters
outInfluencenumbernoread by the command beside its listed parameters
paramstringno
secondsnumbernothe time, in seconds (one spelling of it)
timeintegernoticks (254016000000 per second)
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.addKeyframe" }]
}

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": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "mask": {
      "type": "integer"
    },
    "mediaTime": {
      "description": "read by the command beside its listed parameters",
      "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": "ticks (254016000000 per second)",
      "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.