-
Render Order problem between comps
So basic script here driving the front wheel of a bike with the x position property of a precomp. The rotation of the wheel drives many other attributes(pedals, riders movements with an inverse kinematics script, etc.) So I’ve precomped all of those layers into the precomp named “Opponent Biker” which is then animated along X in the comp “speed”. All of this works when scrubbing the X parameter of the “OpponentBiker” precomp…But when keyframing the same x property the animation ceases to work. I assume this is a render order problem
I assume the answer lies in changing the render order, or perhaps pulling the X position of the precomp from the frame before. I just have no idea how to pull either off with an expression. Any help would be great.
distance=comp(“Speed”).layer(“OpponentBiker”).position[0];
circumference=405*Math.PI;
distance/circumference*360;