-
Element 3D Car Tire Rotation
I found the following expression by Dan Ebberts. He was helping someone else trying to automate tire rotation on an Element 3D car model. I applied the expression to a null set up for tire rotation, but nothing happens. No error, but no rotation. Any ideas?
dist = 0;
f = timeToFrames(time);
f0 = timeToFrames(inPoint);
for (i = f; i > f0; i--){
p1 = position.valueAtTime(framesToTime(i));
p0 = position.valueAtTime(framesToTime(i-1));
dist += length(p0,p1);
}360*(dist/(Math.PI*width))
Jason Jenkins
Flowmotion Media
Video production… with style!Check out my Mormon.org profile.