-
Oval motion
Hi,
I am using the following expression to arrange layers in a circular pattern in z space.
radius=thisComp.layer("Geometry Ctrl").effect("Radius")("Slider");
layer_num=index-(thisComp.layer("Geometry Ctrl").effect("Index ctrl")("Slider"));
interval=thisComp.layer("Geometry Ctrl").effect("Interval")("Slider");
angle = degrees_to_radians(layer_num*interval);
x=radius*Math.cos(angle);
y=0
z=radius*Math.sin(angle);
add(0, [x, y,z]);The layers are parented to a null, so when I rotate the null (y axis) all the layers rotate. So far so good. The question is how can I change the expression so that the arrangement is in an OVAL path as opposed to the current circular path?