Film kit command
sequence.setTransition
Edit Transition Settings
Changes an applied `transition` by id: effect `params`, `reverse`, `reset` to defaults, and where it sits: `duration` (ticks) or `frames` resizes it as its alignment says, `align` (center, start, end) puts it on its cut, `start` (ticks) moves it, with `duration` one end. It stays over its cut and inside the clips it joins. `merge` makes a drag's calls one undo step (`begin` starts a new one). Answers its `start`, `duration` and `align`.
- Kit
- Film 0.1.0 (.kfilm)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
align | "center" | "start" | "end" | no | |
begin | boolean | no | |
duration | integer | no | ticks (254016000000 per second) |
frames | integer | no | |
merge | boolean | no | |
params | object | no | |
reset | boolean | no | |
reverse | boolean | no | |
start | integer | no | ticks (254016000000 per second) |
transition | integer | no |
Call through film_run
film_run {
"path": "<file>.kfilm",
"steps": [{ "command": "sequence.setTransition" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: align, begin, duration, frames, merge, params, reset, reverse, start, transition. film_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"align": {
"enum": [
"center",
"start",
"end"
],
"type": "string"
},
"begin": {
"type": "boolean"
},
"duration": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"frames": {
"type": "integer"
},
"merge": {
"type": "boolean"
},
"params": {
"additionalProperties": true,
"properties": {
"param": {}
},
"type": "object"
},
"reset": {
"type": "boolean"
},
"reverse": {
"type": "boolean"
},
"start": {
"description": "ticks (254016000000 per second)",
"type": "integer"
},
"transition": {
"type": "integer",
"x-khp-types": [
"Transition"
]
}
},
"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.