Film kit command
project.freeform.layout
Freeform Layout
Reads the Freeform card positions and sizes of `bin`'s items (auto-placed ones included) for a panel `width`.
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bin | integer | no | binId? |
width | number | no |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "project.freeform.layout" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bin, width. film_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
bin | any | no | |
cards | object[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"bin": {},
"cards": {
"items": {
"additionalProperties": true,
"properties": {
"item": {
"type": "integer"
},
"placed": {
"type": "boolean"
},
"size": {
"type": "number"
},
"stack": {},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"bin": {
"description": "binId?",
"type": "integer",
"x-khp-types": [
"Bin"
]
},
"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.