Motion Scripting
/ PropertiesStrokes properties
Per-stroke members by stroke id: width, colour, dashes, taper and profile.
Per-stroke members - width, colour, dashes, taper, profile and friends - addressed by stroke id.
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 |
|---|---|---|---|---|
strokes.<stroke_id>.adjustments.contrast | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.adjustments.exposure | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.adjustments.highlights | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.adjustments.saturation | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.adjustments.shadows | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.adjustments.temperature | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.adjustments.tint | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.asset | asset_ref | asset reference | yes | drive set |
strokes.<stroke_id>.blend_mode | enum | enum name (string) | yes | drive set |
strokes.<stroke_id>.cap | enum | enum name (string) | yes | drive set |
strokes.<stroke_id>.colour | colour | [r, g, b, a] 0..1 | yes | drive set |
strokes.<stroke_id>.crop_transform | crop_transform | crop transform | yes | drive set |
strokes.<stroke_id>.dash_offset | scalar | px (positive advances the pattern along the path) | yes | drive set |
strokes.<stroke_id>.dashes.<index>.dash | scalar | px | yes | drive set |
strokes.<stroke_id>.dashes.<index>.gap | scalar | px | yes | drive set |
strokes.<stroke_id>.gradient_end | point2 | [x, y] px | yes | drive set |
strokes.<stroke_id>.gradient_start | point2 | [x, y] px | yes | drive set |
strokes.<stroke_id>.gradient_width_handle | point2 | [x, y] px | yes | drive set |
strokes.<stroke_id>.join | enum | enum name (string) | yes | drive set |
strokes.<stroke_id>.mitre_limit | scalar | x the half-width (1..100) | yes | drive set |
strokes.<stroke_id>.mode | enum | enum name (string) | yes | drive set |
strokes.<stroke_id>.opacity | scalar | percent (0..100) | yes | drive set |
strokes.<stroke_id>.position | enum | enum name (string) | yes | drive set |
strokes.<stroke_id>.profile | width_profile | width profile point list | yes | drive set |
strokes.<stroke_id>.profile.<point_id>.t | scalar | fraction of the path (0..1) | yes | drive set |
strokes.<stroke_id>.profile.<point_id>.width | scalar | x the weight (0..16) | yes | drive set |
strokes.<stroke_id>.stops | gradient_stops | gradient stop list | yes | drive set |
strokes.<stroke_id>.stops.<stop_id>.alpha | scalar | percent (0..100) | yes | drive set |
strokes.<stroke_id>.stops.<stop_id>.colour | colour | [r, g, b, a] 0..1 | yes | drive set |
strokes.<stroke_id>.stops.<stop_id>.offset | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.taper.end_ease | scalar | fraction (0..1) | yes | drive set |
strokes.<stroke_id>.taper.end_length | scalar | fraction (0..1) | yes | drive set |
strokes.<stroke_id>.taper.end_width | scalar | fraction (0..1) | yes | drive set |
strokes.<stroke_id>.taper.start_ease | scalar | fraction (0..1) | yes | drive set |
strokes.<stroke_id>.taper.start_length | scalar | fraction (0..1) | yes | drive set |
strokes.<stroke_id>.taper.start_width | scalar | fraction (0..1) | yes | drive set |
strokes.<stroke_id>.tile_scale | scalar | [x, y] percent (100 = 1:1) | yes | drive set |
strokes.<stroke_id>.weight | scalar | number (wire units of the key) | yes | drive set |
strokes.<stroke_id>.weights.bottom | scalar | px | yes | drive set |
strokes.<stroke_id>.weights.left | scalar | px | yes | drive set |
strokes.<stroke_id>.weights.right | scalar | px | yes | drive set |
strokes.<stroke_id>.weights.top | scalar | px | yes | drive set |