Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Making Objects Move around a mask path with expressions

  • Making Objects Move around a mask path with expressions

    Posted by Garrett Perkins on February 4, 2016 at 6:29 pm

    I have four png files placed at various points around a circular path. I want them all to move around the circular path with their starting points being their current position on the path. Currently I have the path on a null controller, with the null moving around the path. Parenting the objects to the null doesn’t work because i want them to rotate around the same path.

    Is there an expression i can use to make this work? ValueAtTime?

    Thanks,
    Garrett

    Dan Ebberts replied 10 years, 6 months ago 3 Members · 3 Replies
  • 3 Replies
  • Kalleheikki Kannisto

    February 5, 2016 at 8:47 am

    For circular motion, you don’t need a path nor expressions, you can put a null in the center of the circle with the other objects parented to it. Rotating the null will rotate the objects in a circle.

  • Garrett Perkins

    February 5, 2016 at 2:44 pm

    Thanks, I appreciate the response. I’ve done that and it makes the .png’s rotate as well, which isn’t my desired effects. I really want to figure out a way to get each object to travel around the path, with different starting points. Any idea how I might achieve that?

  • Dan Ebberts

    February 5, 2016 at 4:02 pm

    I’m not sure this will do exactly what you need, but it might get you headed in the right direction. First paste your circular path into the position property of Null 1. Then add this expression to the position property of one of the follower layers:

    startPct = 75;
    loopTime = 4;
    leader = thisComp.layer(“Null 1”).transform.position;
    curPct = (startPct + ((time – inPoint)/loopTime)*100)%100;
    leader.valueAtTime(2*curPct/100)

    Edit the first two lines to adjust the starting position (percentage of loop travel), and the time to travel around the loop.

    Dan

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