ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scrolling text - typeout, how to reverse scrolling direction (up/down)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tom Granberg
Scrolling text - typeout, how to reverse scrolling direction (up/down)
on Jul 14, 2017 at 10:09:17 pm

Mikey had this expression available to use inside the text layers position.
Essentially scrolling the text box as it grows exactly one line as the line breaks hit and grows the box, so that's pretty nifty.
I would like to use either a slider control (like below) with the range being between -1 & 1 to be able to reverse the scroll direction. (or another controller if needed)

However I am stumped, since by multiplying the equation by -1 all the numbers is now negative, so the whole text box jumps exactly to the mirrored vertical position and continues from there.
What I would like is to half way trough the animation for instance, then key frame the slider from -1 to 1 and reverse the scroll direction from the position it's at.

Trying to simulate a code screen scroll up and down.

pLine=this.sourceRectAtTime(time).height;
C=thisComp.layer("Controls").effect("Slider Control")("Slider");
scaler=transform.scale[1]/100;
A=value
B=[0,(pLine*scaler)*C]
A-B


Return to posts index

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