Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions expression duration

  • expression duration

    Posted by Bill Chadwick on May 16, 2008 at 7:23 pm

    how can i define how long a given expression is enabled for a certain layer? i have a camera with a wiggle expression.

    wiggle(.35,200)

    i only want the expression to apply to the camera for the first 6 seconds, then stop as the camera continues on its merry way. any ideas?

    Dan Ebberts replied 17 years, 12 months ago 2 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    May 17, 2008 at 2:03 am

    Do you want it to stop abruptly and return to the non-wiggle value, or do you want it to stop abruptly and hold the last wiggle amount so there’s no jump, or do you want it to ease from the wiggle into the non-wiggle?

    Dan

  • Bill Chadwick

    May 20, 2008 at 2:15 pm

    yea i just discovered the jarring trasition from wiggle to no wiggle. i have this code to do what i thought i wanted…

    if (time < 5.2) wiggle (.35,200) else wiggle (0,0) 

    how do i add easy ease to the transition? or maybe hold the last wiggle value? thanks for the help!

  • Dan Ebberts

    May 20, 2008 at 2:55 pm

    This should hold the last value:

    wiggle(.35,200,1,.5,Math.min(time,5.2))

    Dan

  • Bill Chadwick

    May 22, 2008 at 2:57 pm

    cool man, now, how can i easy ease it for future reference?

  • Dan Ebberts

    May 22, 2008 at 4:22 pm

    This should ease it to the non-wiggled value:

    easeDur = .5;
    stopTime = 5.2;
    easeOut (time,stopTime – easeDur,stopTime,wiggle(.35,200),value)

    Dan

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