ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Change Position of Text Box Based on its Width

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Spencer Tetik
Change Position of Text Box Based on its Width
on May 30, 2018 at 4:18:49 pm

I'm fairly new to expressions but I'm wanting to have text move on and off the screen in the x-axis but I need to be able to change the source text and still have text animate all the way on and off the screen even when the size of the text box has changed. I assume I need to use sourceRectAtTime for this but I'm not sure how to implement this.


Return to posts index

Spencer Tetik
Re: Change Position of Text Box Based on its Width
on May 30, 2018 at 9:05:46 pm

Figured it out on my own finally.

t0 = inPoint;
transitionDur = 3;

A = 2200;
B = -sourceRectAtTime().width;;

t1 = t0+transitionDur;

linear(time, t0, t1, A, B);


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]