Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 20-05-2008, 08:17 PM   #1
MikeUK3
Registered User
 
Join Date: May 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Insect Wings animation

I've created a cartoon Bee in Maya 8.5 but I need to animate the wings independently from the Bees movements and at a rapid rate (say 5 times per second). How would I do it? The timeline is in seconds, can I change that to work in milliseconds for example? I'm taking it keyframing is the best way to do it?

Any advice please?
Thanks
Mike
MikeUK3 is offline   Reply With Quote
Old 20-05-2008, 10:11 PM   #2
AikoWorld
Subscriber
 
AikoWorld's Avatar
 
Join Date: Dec 2005
Location: London
Posts: 429
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To get a secondary animation on the wings you can do this with lots of different methods.

The one i would use is.

an expression.
l_wing01.rotateZ = sin (time * 10) * 40;


L_wing01 is the wing object
.rotateZ is the direction of the wing flapping

sin is returning the sine of an angle specified in radians

*10 is the amount of times per second

*40 is the degree the wing will flap inbetween.

have fun.

Last edited by AikoWorld : 20-05-2008 at 10:15 PM.
AikoWorld is offline   Reply With Quote
Old 21-05-2008, 02:50 AM   #3
MikeUK3
Registered User
 
Join Date: May 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks

I'm relatively new to Maya so haven't delved into MEL yet. I did manage to do it though. Here is what I did:

I set the wings in their starting position and set a keyframe. Next I positioned each wing to their emd point (left wing 50 and right wing 130) and set a second keyframe. Finally I returned the wings to their original position and created a 3rd keyframe.

With the Bee selected, open the graph editor (Window > Animation Editors > Graph Editor), go to Curves > Post Infinity> Cycle. The to move the Bee around while it's wings are flapping, I just grouped the Bee parts (wings, body, head) and keyframed as usual. To slow the wings down just space the keyframes out on the timeline.

Might not be the best way but it's done the job. Hope this helps someone else looking for the same thing at some point.

Thanks for your help
Mike
MikeUK3 is offline   Reply With Quote
Old 22-05-2008, 05:23 AM   #4
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

jumped the gun there Akio..

no doubt the above Akio would have a better and more succinct way of putting this.., he might help with the timing because im going to 'wing it' so to speak.

you have your low poly mesh of the bee, yes?

you have a very basic skeleton and have smooth bound it (skinned it with the root joint,, being the first joint between the wing skeleton.., yes?

shift select the joints from one side until the last joint, at the wing tip.., stop there, then continue to the other wing side and do the same.., now when you rotate.., the wings should do their thing.

as for timing.., you do the math.., if your ntsc.., im not.., but at 30 frames a second you could probably keyframe.., god..,as fast as you want.., say, first key frame with wings up at frame 1.., middle mouse button to frame 5 and set a key.., the wings are still in the up position.., middle mouse to frame 5.., put the wings into a down position and set the key.., then cycle with infinity.., post

thats a start.., you might need to check the keying because you will probably not get a nice loop with those settings.., im running out the door.., best i can do atm

Mirek
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 22-05-2008, 11:21 AM   #5
MikeUK3
Registered User
 
Join Date: May 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Erm, yes I've created a poly mesh bee but there is no need for a skeleton for my purpose as it's not a human-type bee as such. They are simple semi-transparent wings that just need to flap up and down, they don't need to be complicated like the flapping pattern of a bird. I just changed the pivot point so that they rotate around the body slightly and then key framed. I'm creating a short (3 min animation with it so I'l post it on youtube when it's done and add a link.

Thnaks for your help
Mike
MikeUK3 is offline   Reply With Quote
Old 22-05-2008, 11:29 AM   #6
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

sorry mate, didnt read the mail properly.., sounds like your on top of it.., when you said flapping., i thought.., 'flapping'.., when you said never done MEL.., i didnt think you understood what had been instructed.., now, after reading again.., all sounds great.., im keeping that expression given to you by that very generous lad.., Akio.., generous with the good oil (good information).

im wondering which channel or the expression is fed into.., im not getting the full picture in my mind.., where did you use the expression.., in the channel box?? which connection??
__________________
take it easy and life will be easy

Last edited by mirek03 : 22-05-2008 at 11:32 AM.
mirek03 is offline   Reply With Quote
Old 22-05-2008, 12:05 PM   #7
MikeUK3
Registered User
 
Join Date: May 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot I need to ask another question but I'll out it in another thread..

Thanks again
Mike
MikeUK3 is offline   Reply With Quote
Old 22-05-2008, 12:12 PM   #8
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

i put that expression on rotate z.., in the channel box.., put 100 for the amount of flapping.., and.., man.., thats impressive.., works well, very well
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 22-05-2008, 12:25 PM   #9
AikoWorld
Subscriber
 
AikoWorld's Avatar
 
Join Date: Dec 2005
Location: London
Posts: 429
Thanks: 0
Thanked 0 Times in 0 Posts
Default

good you could use it mirek.

jup the expression just needed to be added in the attributes chanel of the appropriate rotation for example X.

In the Attribute channel,

Right click the Rotation X
Go down to Editors
Expressions

and type in the expression.

Just change the l_wing01 to the correct object name.

Expressions are allot of fun.
AikoWorld is offline   Reply With Quote
Old 22-05-2008, 12:34 PM   #10
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

yo dude.., yea i did that.., works a treat.., nice to be able to edit expressions too eh.., ive noticed you know your way around them LOL,

cheers dude and many many thanks
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 22-05-2008, 01:01 PM   #11
AikoWorld
Subscriber
 
AikoWorld's Avatar
 
Join Date: Dec 2005
Location: London
Posts: 429
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No probs, i need to know these things its my job

I try to help out on these things where i can on SM.
AikoWorld is offline   Reply With Quote
Old 22-05-2008, 01:22 PM   #12
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

of course i know.., hence.., many many thanks, you have already helped me many many times.., believe me

ive been wanting to thank you in some way for ages
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 22-05-2008, 02:20 PM   #13
AikoWorld
Subscriber
 
AikoWorld's Avatar
 
Join Date: Dec 2005
Location: London
Posts: 429
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cool! well thats the fun part learning every day
I love learning new stuff.
AikoWorld is offline   Reply With Quote
Old 22-05-2008, 02:49 PM   #14
mirek03
Subscriber
 
mirek03's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 2,752
Thanks: 0
Thanked 3 Times in 3 Posts
Default

yea, i believe the arts a magic,

great to give someone a little magic eh !?"

great to learn to learn, gets one through the tough times.., what does the Tao say..?? mistakes and difficulties are a blessing because it feels so good when you learn learn from them.., when you solve them..,

something like that..,

i can speak a little japanese.., nice sentiment.., your alias.., with all respect.., it suites you from what i've seen

very coool sincere it would seem

great for me to have this chance to say hi..,

i gotta get up at 4.30 am to catch a flight to sydney.., so im a crashing dude.., its night here ive got a girl to meet in the morning.., (bliss)

your doing great work for us lowly poor students and those not in the 'inner circle' mate.., appreciated.., you should know that!!!!!

night
__________________
take it easy and life will be easy
mirek03 is offline   Reply With Quote
Old 22-05-2008, 03:07 PM   #15
AikoWorld
Subscriber
 
AikoWorld's Avatar
 
Join Date: Dec 2005
Location: London
Posts: 429
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey have fun in Sydney, and lots of great times with your girl.

Ah lol poor students, they don`t exist. Everybody is a student, i`m one, even George Lucas is still a student. As we all learn every day. Other wise life would be boring .

Thanks for the kind words, much appreciated.

i gotha go back to work in a couple minutes, creating a tree simulation, whoeee

Cy`s have a great weekend.
AikoWorld is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin Copyright © 2000-2015, Jelsoft Enterprises Ltd.