Creative COW SIGN IN & SETTINGS :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

expression duration

Cow Forums : Adobe After Effects Expressions
expression duration
by vassili zaitsev on May 16, 2008 at 7:23:41 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?

Respond to this post     Return to posts index

Re: expression duration
by Dan Ebberts on May 17, 2008 at 2:03:30 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



Respond to this post     Return to posts index

Re: expression duration
by vassili zaitsev on May 20, 2008 at 2:15:10 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!



Respond to this post     Return to posts index


Re: expression duration
by Dan Ebberts on May 20, 2008 at 2:55:28 pm

This should hold the last value:

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


Dan



Respond to this post     Return to posts index

Re: expression duration
by vassili zaitsev on May 22, 2008 at 2:57:12 pm

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



Respond to this post     Return to posts index

Re: expression duration
by Dan Ebberts on May 22, 2008 at 4:22:59 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



Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   NEXT THREAD >>


FORUMSLIBRARYPODCASTSBLOGSMAGAZINESERVICESNEWSLETTERSNEWSSTOREEVENTS

© CreativeCOW.net All rights are reserved.

[Top]