Graphics Discussion and Showcase

After Effects -> Project butterfly, Playing around with math.sin() function

Submitted by TimeTraveller, , Thread ID: 72149

Thread Closed
29-01-2018, 09:35 PM
This post was last modified: 29-01-2018, 09:39 PM by TimeTraveller
#1
I learnt using sin (mathematics) expressions in after effects a while ago. I think of sharing it here since i find it pretty cool.These are mainly used to flip the wings. They are used in the butterfly animated below, i think the animation looks pretty smooth.

The expression i used to rotate the wings was :-
Code:
math.sin(time*effect("slidervar_1")("slider_layername"))*30
I am just trying to show the use of this expression as used to loop abutterfly.

The result:-
Side view:-

[Image: wPlL.gif]

Top view:-
[Image: xzlx.gif]

Actually, this mathematical sin() function has a period of 2 angle with maxima of 1 at /2 and 3/2. It's symmetric across the x-axis across equal and different parts in its cycle.This function is pretty well suited to representbutterfly wing wiggle.

Not my image:-

[Image: 377235.image12.jpg]

Maybe this information is helpful to someone of you.

Thanks for reading.
1

Users browsing this thread: