-
Exponential Curve Expression
Hello all,
I need to scale and move an objects as if it was in 3D space. Using Exponential Scale works well for the scale but when I also move the postion of the object it makes the obect appear to curve in space instead of just receding back.
So I believe I need the position to have the same exponential curve. I found an expression here from Dan Ebberts to add an exponential curve between two key frames.
if (numKeys > 1){
v1 = key(1).value;
v2 = key(2).value;
t1 = key(1).time;
t2 = key(2).time;
if (time > t1 && time < t2){ t = time - t1; T = t2 - t1; k = Math.log(v2/v1)/T; v1*Math.exp(k*t) }else{ value } }else{ value } Problem is I can't seem to get it to work. I'm just copy and pasting that into the property values. Is that right? I'm fairly new to expressions so any help is appreciated. -jon