Film kit command

effect.toggleAnimation

Toggle Animation

Turns keyframe animation of an effect parameter on (a keyframe at `time`, sequence ticks or `frame`/`seconds`, default the playhead) or off (removes its keyframes, keeping the value at that time).

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.toggleAnimation
NameTypeRequiredDescription
clipintegerno
effectstringnostr|index
frameintegernoone of several alternative parameters
maskintegerno
paramstringno
secondsnumbernoone of several alternative parameters
timeintegernoticks (254016000000 per second); one of several alternative parameters
timecodestringnothe time, as a timecode (one spelling of it)

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: clip, effect, frame, mask, param, seconds, time, timecode. 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": "one of several alternative parameters",
      "type": "integer"
    },
    "mask": {
      "type": "integer"
    },
    "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"
    }
  },
  "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.