Film kit command
graphics.setCharStyle
Character Style
Styles characters `start`–`end` of a text layer: font, size, color, bold, italic, underline, tracking, baseline shift, caps; `clear` removes run styles from the range.
- 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 |
|---|---|---|---|
clear | boolean | no | remove styles from the range |
clip | integer | no | |
end | integer | no | char=len; default len |
layer | string | integer | no | n|name? |
start | number | no | char=0; default 0 |
style | object | no |
Call through film_run
text
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "graphics.setCharStyle" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: clear, clip, end, layer, start, style. 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": {
"clear": {
"description": "remove styles from the range",
"type": "boolean"
},
"clip": {
"type": "integer",
"x-khp-types": [
"Clip"
]
},
"end": {
"description": "char=len; default len",
"type": "integer"
},
"layer": {
"description": "n|name?",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"start": {
"description": "char=0; default 0",
"type": "number"
},
"style": {
"additionalProperties": true,
"properties": {
"baselineShift": {
"description": "pixels",
"type": "number"
},
"bold": {
"type": "boolean"
},
"caps": {
"enum": [
"normal",
"all caps",
"small caps"
],
"type": "string"
},
"color": {
"description": "like #rrggbb",
"type": "string"
},
"font": {
"type": "string"
},
"fontStyle": {
"type": "string"
},
"italic": {
"type": "boolean"
},
"size": {
"description": "pixels",
"type": "number"
},
"tracking": {
"type": "integer"
},
"underline": {
"type": "boolean"
}
},
"type": "object"
}
},
"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.