Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions An elliptical path into the screen?

  • An elliptical path into the screen?

    Posted by Vishal Medepalli on December 20, 2011 at 6:56 pm

    I want to move an object in an elliptical path that goes into the screen and comes out, like our solar system, planet revolving around the sun, but seen from a different angle? How can I do this? please help.

    Thank you.

    Kevin Camp replied 14 years, 5 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 20, 2011 at 7:14 pm

    You could use the parametric equation for an ellipse to get motion in the x/z plane, like this:

    center = [thisComp.width/2,thisComp.height/2,0];
    freq = .5;
    rx = 200;
    rz = 300;
    angle = freq*time*Math.PI*2;
    x = rx*Math.cos(angle);
    z = rz*Math.sin(angle);
    center + [x,0,z]

    Dan

  • Kevin Camp

    December 20, 2011 at 7:17 pm

    a fairly easy way would be to create the elliptical path on a solid or null and get it the way that you want (double-clicking any point will allow you to stretch a circular path into an ellipse). you could layout several ellipses on the same layer this way, if needed.

    once you have the ellipse, you can select its mask path and copy it and paste it into the position property of a layer and the layer will follow that path.

    to get different angles (rather than the top-down angle), you’d just make the layer 3d, add a camera and use the camera orbit tool to get different angles. you may also want to enable auto-orient towards the camera (layer>transform>auto-orient).

    Kevin Camp
    Senior Designer
    KCPQ, KMYQ & KRCW

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