Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects › Eccentric (elliptical orbit around null object)

  • Eccentric (elliptical orbit around null object)

    Posted by Rahman Henderson on February 21, 2019 at 7:04 am

    I have made a planetary orbit animation such as in this video: https://www.youtube.com/watch?v=BJUtbBo-PAw, except mine is top-down view. It is intended to show the orbits of moons in correct time and approximate 2D position.

    Essentially two circles, viewed from the top, one paired to a null object that shares the anchor point with the other circle, orbiting using Z rotation.

    I need to change the orbit from circular to elliptical, with an eccentricity of 0.75

    How would I do this?

    One post on here recommended I do this: https://forums.creativecow.net/archivethread/2/482236#482525

    But I’m not sure where to enter that code, or if that will even work. I think I enter the position expression by alt-clicking something, but I dont know where it goes or how to format it.

    I am very new to AE, this is my first project although I have been using PS for a very long time.

    Any help greatly appreciated!

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Rahman Henderson replied 7 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    February 21, 2019 at 10:39 am

    That expression should work for you. You’d have to calculate the width and height of the ellipse you wish in pixels and set them in the expression (they are currently 600px and 400px, respectively).

    Alt+click the Position stopwatch and paste it in.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Rahman Henderson

    February 23, 2019 at 4:39 am

    I got it working. I now realize that the final line is the array that is the position expression. Everything else is just inconsequentially named variables used to populate the final array.

    What if I wanted to display the position of the object on screen? Is there a way to link some text on the screen to one of those variables in the position expression?

    Precisely, I want to display the distance of the moon from the planet it is orbiting, as well as the time (taking the values and multiplying them by whatever value is necessary to get them from pixels to astronomical units)

    Thank you very much!

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