ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Math.sin alternate range of motion?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tor Burrows
Math.sin alternate range of motion?
on Sep 3, 2018 at 7:18:49 am

Hi guys, would someone kindly help me with an expression tweak?

I'm animating a butterfly's wings using the expression..

Math.sin(time * effect("Speed")("Slider")) * 40

However, the wings flap too far forward, disguising the butterfly's body. Is there someway to limit the range of motion in this direction, so that the wings don't travel more than say -20 in that direction, and 40 in the other?

Thanks!

Victoria


Return to posts index

Dan Ebberts
Re: Math.sin alternate range of motion?
on Sep 3, 2018 at 3:09:48 pm

This would be one way:

10 + Math.sin(time * effect("Speed")("Slider")) * 30

Dan



Return to posts index

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