Discussion:
stuck on an expression
(too old to reply)
M***@adobeforums.com
2007-02-21 08:26:49 UTC
Permalink
Seeing as I have just begun to learn expression please bear with me. My goal is make it appear as though some text has broken off the end of a line, dangled a bit, then fallen off. A perfect example can be seen in this intro clip during the first line.

<http://www.allbetsareoff.com/>

I can create the dangling with the following expression:

freq = 1.0;
amplitude = 50;
decay = 0.7;

amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*time)

The above expression only makes the text appear as though it were on top of a diving board, springing up and down. I can not figure out how to change the orientation of the text so it sways like it is hanging.

Thank you in advance if anyone can help.
R***@adobeforums.com
2007-02-21 16:27:55 UTC
Permalink
I'm assuming that you have the word you want to dangle and fall off as a separate element. If so you could add an Expression Angle Control slider to your text line then set a couple of keyframes make it fall 90. When you want the text to fall off, animate position.

I'd try the following code:

freq = 1.0;
amplitude = 50;
decay = 0.7;
a = effect("Angle Control")("Angle");
v = amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*time);
v + a

There's also a way to initiate all of this with layer markers, and if you want to get real fancy, you can probably do this with text animators keeping all the text on a single line.
M***@adobeforums.com
2007-02-21 21:25:09 UTC
Permalink
Your assumption was correct. They're separate elements. And thanks a ton. That was exactly what I was looking for.
Loading...