ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Center aligned - Typewriter Text-Expanding box with type-indicator

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Daniel Lenz
Center aligned - Typewriter Text-Expanding box with type-indicator
on Jan 31, 2018 at 9:23:08 am

I hope the title explained it. Becuase it's really hard to explain.
I'm looking for a way to make an animation with a bunch of effects.

I want a box where if i write something in it, the box will expand. When a new character appears, the box follows the typing. wider, or longer if dobbelt line.



It also needs a typewriter effect with a blinking indicator, but writing from the middle instead of writing from right to left or left to right. This one was the most troublesome.

I have found Expressions for all the effects, but i cant seem to fit them together.

A few problems i have:
1. The typewriter effect expands the box and contracts every time the blinker appears.
2. If possible: I need a slider to adjust the indicators height(stretch).
3. If I make a second line in my text, the box expands both up and down. I only want it to expand downwards with the text.


I have put the code used, in the box below.

-Daniel Lenz

// Typewriter effect with indicator
L = text.sourceText.length;
T = time*effect("Speed")("Slider") - effect("Start At")("Slider")*effect("Speed")("Slider")
F = Math.round(time % 1);
if(F == 1 | (T0) ){Fl = "|";}else{Fl=" ";}

substr(0,T) + Fl

//Expanding Box
xExtra = effect("xExtra")("Slider");
yExtra = effect("yExtra")("Slider");
s = thisComp.layer("TextLayer");
x = s.sourceRectAtTime().width + xExtra;
y = s.sourceRectAtTime().height + yExtra;
[x,y]


Return to posts index

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