Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animation jumps with marker trigger expresssion

  • Animation jumps with marker trigger expresssion

    Posted by Sergio Pol on November 28, 2023 at 9:43 pm

    Hi Creative Cow comunity, I use Dan Ebbert’s expression to trigger animations based on markers a lot and I love it. However when there’s constant animation there’s an unaesthetic jump when I move from one action to the other. For example, I have a tringle that enters the comp by moving from the left edge to the center of the comp and stops there, then to exit it moves from the center to the right edge. If I needed to control that with markers it’d work seamlessly but if I needed the triangle to rotate constantly, whenever I called the “exit” action I’d have a jump since there will be a difference in the rotation from its original timeline and from when I’m calling it in the main timeline.

    I’m sure someone has asked this before but I couldn’t find a related discussion here. I tried to control the rotation from the main timeline linking the object to an angle control effect on a null layer but it still jumped. Has anyone found a solution to this?.

    Sergio Pol replied 7 months, 2 weeks ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    November 28, 2023 at 11:33 pm

    I can’t think of a good way to do that. Which version of the marker expression are you using?

  • Sergio Pol

    November 29, 2023 at 1:16 pm

    Hi Dan, I’m using the one on your website motionscript.com.

  • Sergio Pol

    November 29, 2023 at 1:55 pm

    Hi again Dan, I just thought of something that could work. What if I created an expression telling the object to rotate a certain amount of degrees or revolutions between the “in” marker and the next action? Given your proficiency with expressions you may know if this would work or not beforehand. What do you think?

  • Dan Ebberts

    November 29, 2023 at 5:27 pm

    That might work. I did think of another possibility. Instead of using time remapping, you should be able to set things up where the expression calculates the time, as before, but you use it to drive valueAtTime() for that property instead of time remapping. Then you should be free to animate other properties independently. It would involve dropping the time calculations into a variable like:

    result = actMarker.time + t;

    or

    result = 0;

    and then adding something like this at the end:

    valueAtTime(result)

    I haven’t tried it, but I think it should work.

  • Sergio Pol

    November 29, 2023 at 5:32 pm

    If you think it works there’s a great chance it will hahaha, Thanks Dan. I’ll see if I can make it work and get back at you.

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