Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Figure 8 motion path

  • Dan Ebberts

    April 2, 2013 at 6:39 pm

    Try this:

    center = [thisComp.width,thisComp.height]/2;
    radius = 200;
    period = 3;
    angle = 2*Math.PI*time/period;
    x = 2*radius*Math.cos(angle)*Math.sqrt(Math.cos(angle)*Math.cos(angle));
    y = 2*radius*Math.cos(angle)*Math.sin(angle);
    center + [x,y]

    Dan

  • Robert Morris

    April 2, 2013 at 7:03 pm

    Thank you SO much, Dan! That did the trick. Now, I’m also looking to make it move in a figure 8 in Z-space as well at the same time. Perhaps I can figure that out based on your expression…


    Fine Art Drawings | Photography | Compositing | VFX | Titles | Keying | 3D

  • Dan Ebberts

    April 2, 2013 at 7:10 pm

    Maybe like this:

    center = [thisComp.width/2,thisComp.height/2,0];
    radius = 200;
    period = 3;
    angle = 2*Math.PI*time/period;
    x = 2*radius*Math.cos(angle)*Math.sqrt(Math.cos(angle)*Math.cos(angle));
    y = 2*radius*Math.cos(angle)*Math.sin(angle);
    z = x;
    center + [x,y,z]

    Dan

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