Motion Scripting
/ PropertiesContents properties
Addressing the shapes inside a contents-bearing layer: per-shape geometry, transform and appearance members by shape id.
The shape stack of a contents-bearing layer: per-shape geometry, transforms and appearance, addressed by shape 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 |
|---|---|---|---|---|
contents.<shape_id>.path | subpaths | subpath list | yes | drive set |
contents.<shape_id>.roundness | scalar | number (wire units of the key) | yes | drive set |
contents.<shape_id>.transform.anchor | point2 | [x, y] px | yes | drive set |
contents.<shape_id>.transform.opacity | scalar | percent (0..100) | yes | drive set |
contents.<shape_id>.transform.position | point2 | [x, y] px | yes | drive set |
contents.<shape_id>.transform.rotation | scalar | degrees | yes | drive set |
contents.<shape_id>.transform.scale | point2 | [x, y] percent (100 = 1:1) | yes | drive set |
contents.<shape_id>.transform.skew | scalar | degrees | yes | drive set |
contents.<shape_id>.transform.skew_axis | scalar | degrees | yes | drive set |