add_text_segment
Adds text overlays to video projects with precise timing, positioning, and styling controls. Inserts text segments into Statonic video editor projects for annotations, captions, or titles.
Instructions
Add a new text overlay to the project and save. Reuses an existing text track if one exists, otherwise creates one.
Position reference (x, y): ( 0, 0) = canvas center (-1, 0) = left edge, (1, 0) = right edge ( 0, 1) = top, (0,-1) = bottom
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the .json project file | |
| text | Yes | Text content | |
| start_sec | Yes | Start time in seconds | |
| duration_sec | Yes | Duration in seconds | |
| x | No | Horizontal position -1 to 1 (default 0) | |
| y | No | Vertical position -1 to 1 (default 0) | |
| font_size | No | Font size in canvas px (default 80) | |
| color | No | Hex color e.g. "#ffffff" (default white) | |
| bold | No | Bold (default false) | |
| italic | No | Italic (default false) | |
| stroke_enabled | No | Stroke/outline (default false) | |
| stroke_color | No | Stroke color hex (default "#000000") | |
| text_align | No | Text alignment (default "center") |