ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

changing speed

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sonia Li
changing speed
on Sep 5, 2017 at 9:47:49 pm

Hi everyone! I'm new at using expressions and After Effects, so bear with me here.

I am having trouble figuring out how to use the speed expression. I have a Math.sin(time)*10 expression that someone kindly helped me with, and I'd like to add speed to the animation. Currently, the animation moves back and forth in a limited range, but I cannot change the speed without keyframe. I'd like to avoid keyframe to gain more flexibility.

Would love some pointers. Thanks so much!

Best,
Sonia


Return to posts index

Dan Ebberts
Re: changing speed
on Sep 5, 2017 at 10:23:58 pm

If you just want to be able to set the speed to some other value, you could do something like this:

s = effect("Slider Control")("Slider");
Math.sin(time*s)*10

where setting the slider to 5, for example, would make it oscillate 5 times as fast.

If you want to animate the speed, that's a more difficult issue, and you should probably check this out:

http://motionscript.com/articles/speed-control.html

Dan



Return to posts index

Sonia Li
Re: changing speed
on Sep 6, 2017 at 6:41:57 pm

Dan, thanks so much for this! I tried putting the expression into Rotation but it gave me an error. Sorry, please bear with me, I'm very new at this. Not sure where I can put in this expression. Thanks again!


Return to posts index


Dan Ebberts
Re: changing speed
on Sep 6, 2017 at 6:46:10 pm

That expression is for the Position property.

Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]