Film kit command
graphics.set
Set Graphic Properties
Sets properties of graphic `layer` (default selected) in `clip`: `props` like font, size, align, tracking, leading, fill_color, stroke, background, shadow, position, scale, rotation, opacity; keyframed at `time` when animated.
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- yes
- Acts on
clip(one id), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
clip | integer | no | |
layer | string | integer | no | n|name? |
props | object | no | |
time | integer | no | ticks (254016000000 per second) |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "graphics.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: clip, layer, props, time. 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"
]
},
"layer": {
"description": "n|name?",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"props": {
"additionalProperties": true,
"properties": {
"align": {
"description": "like center",
"type": "string"
},
"background": {
"default": true,
"type": "boolean"
},
"fill_color": {
"description": "like #ffcc00",
"type": "string"
},
"font": {
"description": "like Inter",
"type": "string"
},
"font_style": {
"description": "like Bold",
"type": "string"
},
"leading": {
"default": 0,
"type": "integer"
},
"opacity": {
"default": 100,
"type": "integer"
},
"position": {
"items": {
"type": "number"
},
"type": "array"
},
"rotation": {
"default": 0,
"type": "integer"
},
"scale": {
"default": 100,
"type": "integer"
},
"shadow": {
"default": true,
"type": "boolean"
},
"size": {
"default": 120,
"type": "integer"
},
"stroke": {
"default": true,
"type": "boolean"
},
"stroke_width": {
"default": 6,
"type": "integer"
},
"tracking": {
"default": 50,
"type": "integer"
}
},
"type": "object"
},
"time": {
"description": "ticks (254016000000 per second)",
"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.