ass_add_line
Append a new subtitle event line to an ASS document, specifying start/end times, style, and text. The line is appended at the document's end and can be undone with a snapshot revert.
Instructions
Append a new line.
start_ms/end_ms accept milliseconds or time strings such as
"0:00:01.50"; they are clamped into the document timebase and
end < start is an error. Lines are appended at the end of the document
and the returned index is its 0-based position. The call is
snapshot-backed, so :func:ass_undo reverts it.
Returns {"doc_id", "index", "line": <line dict>}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| actor | No | ||
| layer | No | ||
| style | No | Default | |
| doc_id | No | ||
| effect | No | ||
| end_ms | Yes | ||
| comment | No | ||
| margin_l | No | ||
| margin_r | No | ||
| margin_v | No | ||
| start_ms | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||