-
Dan Ebbert’s ferris wheel expression Add Gravity
I am using Dan Ebbert’s ferris wheel expression to create a parade of logos on a wheel…
**********************************************************
n = 15; // number of ferris wheel “cars”
r = 200; //radius of ferris wheela = degrees_to_radians(360/n)*(index-1);
x = 0;
z = r*Math.cos(a);
y = r*Math.sin(a);
[x,y,z]Create a null (“Null 1” in this example), move it to the bottom of the layer stack, make it 3D, make the null the parent of the video layers, and apply this expression for x rotation to each of the video layers:
-this_comp.layer(“Null 1”).rotationX
**********************************************************I have manually keyframed the rotation of the Null so that as each “car” passes in front of the camera it stops and swings back up a bit then continues on its way, it is as if the ferris wheel “car” hits an invisible “ground” and reacts for a moment then the “ground” disappears and the “cars” pick up speed and continue on their way until the next “car” hits the next invisible “ground”, kind of like a gravity bouncing ball effect.
Is there any way to have an expression that will do this for me?Many Thanks!