ass_new_document
Create and register an empty ASS subtitle document with configurable PlayRes, script type, and optional registry ID. Returns document metadata for immediate editing.
Instructions
Create (and register) an empty ASS document.
Args:
play_res_x / play_res_y: PlayResX / PlayResY of the new script.
doc_id: optional registry id; one is generated when omitted.
script_type: "v4.00+" (ASS, default) or "v4.00" (SSA).
Returns the same summary as :func:ass_document_info minus the document
statistics: doc_id, path, dirty, script_type,
play_res_x, play_res_y, fps, lines, dialogue,
comments, styles, sections, encoding, has_bom,
newline. Line indices are 0-based.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| play_res_x | No | ||
| play_res_y | No | ||
| script_type | No | v4.00+ |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||