ass_set_drawing
Replace the vector drawing in a specified ASS subtitle line, optionally setting the \p scale and keeping or removing other override tags.
Instructions
Replace the drawing part of line index.
drawing_text is parsed and re-serialised with integer coordinates, so
the stored text is canonical (this is the only rewriting applied).
scale, when given, sets the line's \p level (\p<scale>); when
omitted an existing \p tag is left alone and a missing one is added as
\p1 so the drawing actually renders.
keep_tags=True keeps every non-drawing override tag and anything after
the drawing (typically the closing {\p0}); keep_tags=False rebuilds
the line as {\p<scale>}<drawing> and discards all other text.
Returns {doc_id, index, source, old_drawing, drawing, scale, text}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| scale | No | ||
| doc_id | No | ||
| keep_tags | No | ||
| drawing_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||