Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- freq = 1;
- decay = 6;
- duration = 0.25;
- retard = textIndex*thisComp.frameDuration*2;
- t = time - (inPoint + retard);
- startVal = [100,100,100];endVal = [0,0,0];
- if (t < duration){
- linear(t,0,duration,startVal,endVal);
- }else{
- amp = (endVal - startVal)/duration;
- w = freq*Math.PI*2;
- endVal + amp*(Math.sin((t-duration)*w)/Math.exp(decay*(t-duration))/w);}
Advertisement
Add Comment
Please, Sign In to add comment