Tutorials
How to Make a Carousel Rig in After Effects
Original Code (composition 2000 x 2000):
radius=500
angle=time*100
x=radius*Math.cos(degreesToRadians(angle))
y=radius*Math.sin(degreesToRadians(angle))
centre=[1000,1000];
add(centre,[x,y])
Carousel 1:
//position
radius=thisComp.layer("CONTROLS").effect("Circle")("Radius")
angle=(360/((thisComp.layer("BOTTOM_LAYER").index)))*index;
x=radius*Math.cos(degreesToRadians(angle))
y=radius*Math.sin(degreesToRadians(angle))
centre=thisComp.layer("CONTROLS").effect("Circle")("Center")
add(centre,[x,y])
//rotation
-parent.transform.rotation //(parent objects to CONTROLS layer)
Carousel 2:
//anchor point
a0=width/2;
a=(thisComp.layer("CONTROLS").effect("Circle")("Radius"))+(height/2);
[a0,a]
//rotation
(360/((thisComp.layer("BOTTOM_LAYER").index)))*index;
//parent objects to
… Read More