Hello
I have been testing out the expression and simplified it a little.
Does it look ok? Would there be any obvious glitches?
How would you specify a frame amount in the duration? (1 at the moment = 1 second).
Thanks for your help with this.
M = marker;
n = 0;
if (M.numKeys > 0){
n = M.nearestKey(time).index;
if (M.key(n).time > time) n--;
}
t = n > 0 ? time - M.key(n).time : 0;
leftMargin = transform.position[0] - effect("Width")("Slider");
rightMargin = transform.position[0] + effect("Width")("Slider");
duration = effect("Duration")("Slider");
x = linear(t,0,duration,leftMargin,rightMargin);
[x,value[1]]