Film kit command

project.freeform.move

Move Clip Cards

Moves Freeform clip cards: the listed or selected `items` to (`x`, `y`), or per-item positions; `snap` aligns to the grid. Undoable.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes
Acts on
items (a list of ids), which a run step’s on fills

Parameters

Parameters of project.freeform.move
NameTypeRequiredDescription
itemsinteger[]noin one of several forms of the parameters
positionsobjectnoin one of several forms of the parameters
snapbooleannoin one of several forms of the parameters
widthnumbernoin one of several forms of the parameters
xnumbernoin one of several forms of the parameters
ynumbernoin one of several forms of the parameters

Call through film_run

text
film_run {
  "path": "<file>.kfilm",
  "steps": [{ "command": "project.freeform.move" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: items, positions, snap, width, x, y. 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": {
    "items": {
      "description": "in one of several forms of the parameters",
      "items": {
        "description": "an id",
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "positions": {
      "additionalProperties": true,
      "description": "in one of several forms of the parameters",
      "type": "object"
    },
    "snap": {
      "description": "in one of several forms of the parameters",
      "type": "boolean"
    },
    "width": {
      "description": "in one of several forms of the parameters",
      "type": "number"
    },
    "x": {
      "description": "in one of several forms of the parameters",
      "type": "number"
    },
    "y": {
      "description": "in one of several forms of the parameters",
      "type": "number"
    }
  },
  "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.