Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Force expression value memory

  • Force expression value memory

    Posted by Jonathan Cutrell on July 16, 2009 at 4:10 pm

    Hello all!

    I am stumped… I am wanting to set up two alternating angle controllers that animate at random speeds over time. Easy enough.

    Here’s the part I can’t fully figure out. I have two checkbox controls set to Math.sin(index) and -Math.sin(index) so that they alternate. I want these checkboxes to start and stop each angle controller’s animation. Is there a way to somehow set a memory point for the angle controllers so that they animate progressively?

    In other words, angle 1 starts animating when checkbox 1 is on, goes for say 200 degrees and then stops as a result of checkbox 1 turning off; the apparent value of angle 1 would still be 200 degrees until checkbox 1 turns on, at which point angle 1 would pick up animating where it left off.

    It’s basically like building an engine that animates but has gas and brakes. Or an on off switch.

    Dan Ebberts replied 17 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    July 16, 2009 at 4:54 pm

    It’s not simple. You have to set up your rotation control expression to loop through time, from frame zero up to the current time, to figure out how much rotation has occured in the past. There’s no way an expression can pass info from one frame to the next.

    Dan

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