Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Animation / Expression for insect wings?
  RSS 2.0 ATOM  

Expression for insect wings?
Rate this thread
 
40374
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 6
  • Joined: 26 February 2009 08:07 AM

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.



Replies: 0
avatar
  • THNKR
  • Posted: 05 March 2010 06:41 AM

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.



Replies: 0
avatar

thx
could you explain briefly each line’s meaning...?
cause I don’t have much idea about expression actually :P

thanks a lot :)



Replies: 0




   
  Settings Choose Theme color: