ae_create_null_path
Move a layer along a path without drifting by creating a null object. Keyframe the null's position through points; the layer stays stable even on curved paths.
Instructions
Move a layer along a (optionally curved) path the safe way: create an invisible Null whose pivot the layer is pinned to, parent the layer to the Null, and keyframe the Null's position through your points. When the Null is stationary the layer can't drift — which raw curved keyframes on the layer itself would cause. NOTE: the layer is repositioned to ride the Null, so make points[0] its desired start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | ||
| layer | Yes | The layer to move. | |
| points | Yes | Path points [[x,y], ...] the layer travels through, in order. points[0] is where the layer starts. | |
| startTime | No | ||
| endTime | No | ||
| curved | No | Auto-bezier the spatial path (vs. straight linear segments). | |
| nullName | No | Defaults to '<layer> PATH'. |