|
I have rigged a housefly and wanted to animate it.
I wonder if there is any expression I could use so I won’t have to keyframe every frame to get the housefly’s wings to flip.
Any ideas? Thanks.
|
|
|
|
AFAIK a housefly can do 200 flaps per second. That’s probably MUCH faster than what Maya can show you. But if you wanted to write an expression for that, it would look like this:
float $freq = 200;
float $amp = 30;
$t = time * 90.0;
float $a = (cosd ($t*$freq))
wing.rotateZ = $a* $amp;
(note: you can set playback speed to 200 fps in the Prefs.
|
|
|
|
thx
could you explain briefly each line’s meaning...?
cause I don’t have much idea about expression actually :P
thanks a lot :)
|
|
|