Guest User

Untitled

a guest
Dec 22nd, 2019
22,019
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. freq = 1;
  2. decay = 6;
  3. duration = 0.25;
  4. retard = textIndex*thisComp.frameDuration*2;
  5. t = time - (inPoint + retard);
  6. startVal = [100,100,100];endVal = [0,0,0];
  7. if (t < duration){
  8. linear(t,0,duration,startVal,endVal);
  9. }else{
  10. amp = (endVal - startVal)/duration;
  11. w = freq*Math.PI*2;
  12. endVal + amp*(Math.sin((t-duration)*w)/Math.exp(decay*(t-duration))/w);}
Advertisement
Add Comment
Please, Sign In to add comment