create-text-layer
Create a text layer in After Effects with full Arabic/RTL support. Direction is auto-detected from text content or can be forced.
Instructions
Create a text layer with full Arabic / RTL support. Direction is auto-detected from the text by default (Arabic -> right-to-left, right-aligned), or force it with direction. Works on After Effects in any language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text content. Arabic is fully supported. | |
| color | No | Fill color [r,g,b] with each channel 0-1 (default white). | |
| compName | No | Composition name (or the active comp if omitted). | |
| duration | No | Layer duration in seconds (default 5). | |
| fontSize | No | Font size in pixels (default 72). | |
| position | No | Layer position [x,y] (default centered ~[960,540]). | |
| alignment | No | Paragraph alignment. If omitted and the text is RTL, defaults to 'right'. | |
| direction | No | Text direction. 'auto' (default) = RTL when the text contains Arabic; 'rtl' / 'ltr' to force. | |
| startTime | No | Layer start time in seconds. | |
| fontFamily | No | Font family (default 'Arial'). For Arabic use a font that supports Arabic, e.g. 'Arial', 'Tahoma', 'Cairo'. |