Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expression Glitch with Auto-Orient?

  • Expression Glitch with Auto-Orient?

    Posted by Nightdesigns on July 22, 2005 at 6:35 pm

    Anyone else have this problem.

    I created an object that travels along a bezier path with auto-orient enabled.

    I used an expression to create a bunch of duplicate layers that follow at a specificed delay (delay set by variable).

    Well every 4th and 5th frame the auto-orient doesn’t work, and then frames 6-9 are fine, 10-11 messed up, etc. This happens to all teh objects associated with that original path.

    Any ideas?

    Nightdesigns replied 20 years, 9 months ago 4 Members · 5 Replies
  • 5 Replies
  • Filip Vandueren

    July 22, 2005 at 7:04 pm

    If you go to frame 1 then purge the ram, and preview again, do you still get the same results ?
    Do all the layers do it or only the ‘followers’ ?

  • Nightdesigns

    July 22, 2005 at 7:31 pm

    Tried it on 2 different computers. It seems to just be the followers that are having the problem. I tried adjusting the rotation, but that didn’t help.

    Possbile work around … any way to have it output the auto-orient value to a expression variable?

  • Mike Clasby

    July 22, 2005 at 8:03 pm

    Have you seen Dan Ebbert’s page on Trails?

    https://www.motionscript.com/mastering-expressions/follow-the-leader.html

    At the bottom of the page the are Orientation issues covered, in the sections titled, Follow the Null and Auto-orient.

    Maybe it will help some.

  • Dan Ebberts

    July 22, 2005 at 9:48 pm

    If you want the follower layers to have the same orientation as the leader layer, but time delayed, apply this expression the their rotation property (leave auto-orientation off for the followers):

    delay = 0.25;
    t = time – delay;
    L = this_comp.layer(“leader”);
    x = L.toWorldVec([1,0],t);
    radiansToDegrees(Math.atan2(x[1],x[0]));

    Dan

  • Nightdesigns

    July 25, 2005 at 6:26 pm

    Thank you, that did the trick with a little modification for my needs (300 followers). It also sped up my render time by a ton!

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