-
Animate text alignment using sourceRectAtTime or dynamically repositioning the anchor point
Trying to animate text alignment like the example I have 50+ versions so don’t want to manually have to reposition each line of text. Ideally needs to automatically align regardless of line length.
This doesn’t seem possible using the alignment tool due to it only using hold keyframes. But is there a way to keyframe or animate between dynamically positioned anchors point using sourceRectAtTime.?
The below will automatically position the anchor point center, left and right but is it possible to interpolate between these values and avoid the issue of the position jumping.
Many thanks.
// [CENTER, BOTTOM]
l = thisLayer.sourceRectAtTime();
[l.left + l.width/2, l.top + l.height];// [LEFT, BOTTOM]
l = thisLayer.sourceRectAtTime();
[l.left, l.top + l.height];// [RIGHT, BOTTOM]
l = thisLayer.sourceRectAtTime();
[l.left + l.width, l.top + l.height];