Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Sphere/ball control

  • Sphere/ball control

    Posted by Tudor “ted” jelescu on April 6, 2011 at 8:22 pm

    I tried setting up a control for a sphere/ ball (or 2 discs intersecting, perpendicular on eachother) in AE 3d space using Nulls and basic expressions. The idea was to animate in one Null the x and z position and have the ball rotation linked to the position. The problem I ran into was that once the movement started on one direction it changed the axis for the rotation on the other direction, the ball ending up rotating in opposite direction than in the beginning. I figured I need an expression that will compensate for the rotation on the other axis, but I am not sure how to do this.
    I am posting below a link to the latest version of my project.
    2161_spherecontrols2.aep.zip

    Tudor “Ted” Jelescu
    Senior VFX Artist

    Dan Ebberts replied 15 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Tudor “ted” jelescu

    April 9, 2011 at 5:09 pm

    I was hoping at least that someone will try this…

    Tudor “Ted” Jelescu
    Senior VFX Artist

  • Dan Ebberts

    April 9, 2011 at 6:00 pm

    I think the basic problem is that you’re trying to calculate rotation based on x-z position. For any given position, there are an infinite number of paths you could use to roll there. So the ball could have any orientation at any given position in the x-y plane. So I don’t think there’s any way to just calculate the orientation. You’d have to examine, frame by frame, the motion that got you to the current location, accumulating the incremental rotation as you go, which could get very complicated.

    Dan

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