ass_update_line
Update specific fields of a single ASS subtitle line, modifying only the properties you provide. Toggle comment status, adjust timing, or change text with undo support.
Instructions
Change individual fields of one line; only the fields you pass change.
index is 0-based. Times accept milliseconds or time strings.
comment=True turns the line into a Comment:, False back into a
Dialogue:. The call is snapshot-backed (:func:ass_undo reverts it).
Returns {"doc_id", "index", "changed": [field names], "line": <dict>}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| actor | No | ||
| index | Yes | ||
| layer | No | ||
| style | No | ||
| doc_id | No | ||
| effect | No | ||
| end_ms | No | ||
| comment | No | ||
| margin_l | No | ||
| margin_r | No | ||
| margin_v | No | ||
| start_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||