Guest User

AE Bounce Expression

a guest
Jul 8th, 2021
20,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. n = 0;
  2. if (numKeys > 0){
  3. n = nearestKey(time).index;
  4. if (key(n).time > time){
  5. n--;
  6. }
  7. }
  8. if (n == 0){
  9. t = 0;
  10. }else{
  11. t = time - key(n).time;
  12. }
  13.  
  14.  
  15. if (n > 0 && t < 1){
  16. v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
  17. amp = .09;
  18. freq = 2.0;
  19. decay = 8.0;
  20. value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
  21. }else{
  22. value;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment