-
After Effects Expression Needed: I am trying to build an Average Speed Generator
Hi, I need a little help getting my average speed gauge to work.
I have a slider generating “MPH” values: essentially a stream of numbers fluctuating over time.
What I am after is a single number for the the average speed accumulating from the start.
I have had a hack at it using bit’s of code from the forums and I am getting a accumulative stream of figures.I’d be grateful for any help – Many thanks – Chris
accum = "";
a=inPoint;while (a < time) {
   v = thisComp.layer("MPH value").text.sourceText.valueAtTime(a);
   accum += v + "" + " " ;
   a += thisComp.frameDuration;
}accum
Christopher Johnstone