Expression to scale text, by word with selector, with an inertial scale bounce.

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  06 June 2014
Question Expression to scale text, by word with selector, with an inertial scale bounce.

I'm semi new to the expression game. I've frankensteined some expressions together but am at a complete loss how I can get them working with my range selector so I can animate the effect per word. Below is where I've gotten the expression thus far. Essentially, I'm making an ae template that will be used for the intro of several projects. I need to have one line of text 3-6 words that will scale up from the base of each word in sequential order. Each word also needs to have an inertial scale bounce to it.

In other words, the word is scaled up from 0% to 120% then bounces back down to 100%. Then the next words in the sentence. Since this is a template for an ongoing project I'm unsure of how many words each sentence will have. As mentioned it will be under 6.

Any help would be greatly appreciated!!

    freq =3; 
    amplitude = -100; 
    decay = 5; 
    s = amplitude*Math.cos(freq*time*2*Math.PI)/Math.exp(decay*time);
    scale + [s,s]
  06 June 2014
Got some help from Dan on CreativeCow

Try this. Add a Scale Animator and set its Scale value to 0. Add an Expression Selector and delete the Range Selector. Set the Expression Selection Based On property to Words. Use this expression for the Amount property:

freq = 3;
decay = 7;
delay = .15;
dur = .07;

myDelay = (textIndex-1)*delay;
t = time - (inPoint + myDelay);
startVal = 100;
endVal = 0;

if(t < dur){
  amp = (endVal - startVal)/dur;
  w = freq*Math.PI*2;
  endVal + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:07 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.