Motion Scripting
/ PropertiesContent properties
Driving what a layer holds: its text, its intrinsic size, its fill colour, its corner radii and its editable path.
A layer's own content members - the text, the intrinsic size, the fill colour, the corner radii and the path for path layers.
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. Patterns marked drive set are the ones scripts may WRITE (every animatable pattern); the rest are statics that change through commands, and a write to one refuses with the typed type_mismatch ("the property is static").
| Pattern | Wire kind | Units | Reads | Writes |
|---|---|---|---|---|
content.corner_radius | corner_radii | [tl, tr, br, bl] px | yes | drive set |
content.fill_colour | colour | [r, g, b, a] 0..1 | yes | drive set |
content.path | path | path (read-only wire shape) | yes | - |
content.roundness | scalar | number (wire units of the key) | yes | drive set |
content.size | point2 | [x, y] px | yes | drive set |
content.text | text | string | yes | drive set |