Film kit command

project.freeform.alignToGrid

Align to Grid

Snaps the clip cards of `bin` (default root) in Freeform view to a `grid` of the given spacing; undoable.

Kit
Film 0.1.0 (.kfilm)
Changes the document
yes

Parameters

Parameters of project.freeform.alignToGrid
NameTypeRequiredDescription
binintegernobinId?
gridnumberno
widthnumberno

Call through film_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: bin, grid, width. 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": {
    "bin": {
      "description": "binId?",
      "type": "integer",
      "x-khp-types": [
        "Bin"
      ]
    },
    "grid": {
      "type": "number"
    },
    "width": {
      "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.