Expressions for animating text without keyframing (inPoint endPoint?)
Hi all
BIt of a novice on expressions
I have a lot of text I need to animate, what i'd like is an expression which uses the inPoint and endPoint of the layer to play the text Animator and animate the words in and out.
Mainly so that I dont have to adjust the distance between keyframes depending how many words are in that text layer, meaning the speed of the animations are consistent/standardised.
e.g A text layer with 1 word will take 0.1 seconds to transition, 5 words will take 0.5 seconds, and a layer with 10 words take 1 second.
I'm currently using this bounce expression on an Expression Selector in the Animator-
delay = .00;
myDelay = delay*textIndex;
t = (time - inPoint) - myDelay;
if (t >= 0)
{
freq =0.0;
amplitude = 250;
decay = 10;
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
[s,s]
}
else
{
value
}this basically does what I'm after (though has unnecessary bounce code in there as dont know how to remove), but I'm struggling to work out how to do this for the transition out.
Thanks for any help!