Motion Scripting
/ PropertiesTransform properties
Position, scale, rotation, anchor, skew and opacity: the transform family every script learns first.
The transform family - position, scale, rotation, anchor, skew, skew axis and opacity: the first family scripts could drive, and still the everyday one.
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 |
|---|---|---|---|---|
transform.anchor | point2 | [x, y] px | yes | drive set |
transform.opacity | scalar | percent (0..100) | yes | drive set |
transform.position | point2 | [x, y] px | yes | drive set |
transform.rotation | scalar | degrees | yes | drive set |
transform.scale | point2 | [x, y] percent (100 = 1:1) | yes | drive set |
transform.skew | scalar | degrees | yes | drive set |
transform.skew_axis | scalar | degrees | yes | drive set |