Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Orient Along Path – How to avoid the flips?

  • Chris Wright

    October 30, 2010 at 10:21 pm

    this might work, it’s another way to orient to path.
    the box you want to orient to null’s bezier path looks like this.

    //position data
    thisComp.layer(“Null 1”).transform.position

    //rotation data
    v=thisComp.layer(“Null 1”).transform.position.velocity;
    radiansToDegrees(Math.atan2(v[1],v[0]))

    //////////

    if that doesn’t work, you’ll have to use a dummy system.
    name your rectangle “box” and paste this in rotation of the arrow. this will always auto orient to the layer being called to.

    follow2 = “box”
    diff = sub(position,this_comp.layer(follow2).position);
    (Math.atan2(diff[1],diff[0]) * 180/Math.PI) + 180

    https://technicolorsoftware.hostzi.com/

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