m = thisComp.marker; n = 0; if (m.numKeys > 0){ n = m.nearestKey(time).index; if (m.key(n).time > time) n--; } if (n > 0){ t = time - m.key(n).time; startVal = 0; endVal = 100; dur = 0.1; if (t < dur){ s = linear(t,0,dur,startVal,endVal) }else{ amp = (endVal - startVal)/dur; freq = 3; decay = 5; w = freq*Math.PI*2; s = endVal + amp*Math.sin((t-dur)*w)/Math.exp(decay*(t-dur))/w } [s,s] }else value