// Ease and Wizz 2.5.3 : Curvaceous : inoutQuint : start and end keyframes // Ian Haigh (http://aescripts.com/ease-and-wizz/) // Last built: 2017-08-08T09:11:06+10:00 function easeandwizz_inoutQuint(t, b, c, d) { if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; return c/2*((t-=2)*t*t*t*t + 2) + b; } function easeAndWizz() { var n = 0; if (numKeys > 0) { n = nearestKey(time).index; if (key(n).time > time) { n-- } } // after the first two keys, yet before the last two, just do nothing if (n > 1 && n < numKeys -1 ) { return null; } try { var key1 = key(n); var key2 = key(n+1); } catch(e) { return null; } t = time - key1.time; d = key2.time - key1.time; sX = key1.time; eX = key2.time - key1.time; if ((time < key1.time) || (time > key2.time)) { return null; } else { return valueAtTime(easeandwizz_inoutQuint(t, sX, eX, d)); } } (easeAndWizz() || value);