Motion Scripting
/ PropertiesText style properties
Driving type from a script: size, leading, tracking, paragraph spacing and the font reference on text layers.
The tracked typography members of text layers - size, leading, tracking, paragraph spacing and the font reference.
Every pattern below is readable from scripts through prop() and layer.prop(); ids in a pattern (like <effect_id>) stand for the entity's real id. Every pattern here is in the drive set: scripts may WRITE each one with set() or a single-output return, per frame.
| Pattern | Wire kind | Units | Reads | Writes |
|---|---|---|---|---|
text_style.align_h | enum | enum name (string) | yes | drive set |
text_style.align_v | enum | enum name (string) | yes | drive set |
text_style.case | enum | enum name (string) | yes | drive set |
text_style.decoration | enum | enum name (string) | yes | drive set |
text_style.direction | enum | enum name (string) | yes | drive set |
text_style.font | font_ref | font reference | yes | drive set |
text_style.hanging_lists | boolean | boolean | yes | drive set |
text_style.hanging_punctuation | boolean | boolean | yes | drive set |
text_style.leading | scalar | number (wire units of the key) | yes | drive set |
text_style.list_style | enum | enum name (string) | yes | drive set |
text_style.mode | enum | enum name (string) | yes | drive set |
text_style.number_position | enum | enum name (string) | yes | drive set |
text_style.overflow | enum | enum name (string) | yes | drive set |
text_style.paragraph_indent | scalar | number (wire units of the key) | yes | drive set |
text_style.paragraph_spacing | scalar | number (wire units of the key) | yes | drive set |
text_style.size | scalar | number (wire units of the key) | yes | drive set |
text_style.tracking | scalar | number (wire units of the key) | yes | drive set |
text_style.truncation | enum | enum name (string) | yes | drive set |
text_style.vertical_trim | enum | enum name (string) | yes | drive set |
text_style.wrap_style | enum | enum name (string) | yes | drive set |