Sorry, another time-related question from me... I can't seem to understand how to trigger events at a certain time with expressions.
Trying to create a perfectly smooth roll mogrt (fixed number of px per second) that slows down maybe half a second before it stops. The expression below makes it roll in from the bottom, but of course it just continues to roll.
Ideally, I'd like it to both start and stop at a slider controlled vertical positions, so the user can decide these.
t = time;
fr = t/thisComp.frameDuration;
x = value ;
s = -1 * Math.round(thisComp.layer("Controls").effect("Speed")("Slider"));
y = Math.round((fr*s)+(thisComp.height/2));
I've read that article before, and I re-read it now - but I still haven't been able to figure out a way to do this. All the methods I've seen use markers or keyframes, which is not an option in this template.
Thank you so much for sharing all the info on expressions, BTW. Your site is still the reference for all things related to expressions!