Film kit command

effect.moveKeyframe

Move Keyframe

Moves the keyframe of an effect parameter at `mediaTime` to media time `to` (both clip media ticks), with a new `value` when given. `mask` targets a mask's parameter. `merge: true` makes a drag of the keyframe (each call naming where the last one left it) one undo step; `begin` starts a new one.

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.moveKeyframe
NameTypeRequiredDescription
beginbooleanno
clipintegerno
effectstringnostr|index
inInfluencenumbernoread by the command beside its listed parameters
interpolationstringnoread by the command beside its listed parameters
maskintegerno
mediaTimeintegernoticks (254016000000 per second)
mergebooleanno
outInfluencenumbernoread by the command beside its listed parameters
paramstringno
tointegernoticks (254016000000 per second)
valueanyno

Call through film_run

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

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