Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by John Madison on January 3, 2014 at 10:44 pm

    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?

    Xavier Gomez replied 12 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Xavier Gomez

    January 3, 2014 at 11:24 pm

    x=radiusX*Math.cos(angle);
    y=0;
    z=radiusZ*Math.sin(angle);

    (you need 2 sliders).
    Xavier.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy