-
X position move based on markers
Hey all
Dan Ebberts wrote this expression last year.
m = marker;
moveTime = .5;
moveAmt = 1734;
n = 0;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (time < m.key(n).time) n–;
}
if (n > 0){
t = time – m.key(n).time;
x = (n-1)*moveAmt + linear(t,0,moveTime,0,moveAmt);
value + [x,0]
}else
valueIt’s brilliant but I wonder how to add an easy ease into the motion.
Is this possible?
Thanks in advance