Guest User

COPY THE FOLLOWING CODE (don't change anything!)

a guest
Mar 30th, 2026
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. n = 0;
  2. if (numKeys > 0) {
  3. n = nearestKey(time).index;
  4. if (key(n).time > time) { n--; }
  5. }
  6. t = (n == 0) ? 0 : time - key(n).time;
  7. if (n > 0) {
  8. v = velocityAtTime(key(n).time - thisComp.frameDuration / 10);
  9. amp = 0.04; freq = 1.8; decay = 4;
  10. value + v * amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t);
  11. } else { value; }
Add Comment
Please, Sign In to add comment