Film kit command

mask.moveVertex

Move Mask Vertex

Moves vertex `vertex` of a mask (or its in/out bezier `handle`) `to` a point or by `delta` in frame pixels; `breakHandles` unlinks the handles.

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 mask.moveVertex
NameTypeRequiredDescription
breakHandlesbooleanno
clipintegerno
deltanumber[]no[dx, dy]; one of several alternative parameters
effectintegernoa position counted from 0 (the first is 0)
handle"point" | "in" | "out"no
maskintegerno
mergeanynokey?
tonumber[]noone of several alternative parameters
vertexintegerno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: breakHandles, clip, delta, effect, handle, mask, merge, to, vertex. 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": {
    "breakHandles": {
      "type": "boolean"
    },
    "clip": {
      "type": "integer",
      "x-khp-types": [
        "Clip"
      ]
    },
    "delta": {
      "description": "[dx, dy]; one of several alternative parameters",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "effect": {
      "description": "a position counted from 0 (the first is 0)",
      "type": "integer"
    },
    "handle": {
      "enum": [
        "point",
        "in",
        "out"
      ],
      "type": "string"
    },
    "mask": {
      "type": "integer"
    },
    "merge": {
      "description": "key?"
    },
    "to": {
      "description": "one of several alternative parameters",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "vertex": {
      "type": "integer"
    }
  },
  "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.