Jump to content

Animation sets? (Maya)


TheConceptBoy
 Share

Recommended Posts

Working on putting together a gun animation, when I found that Leadwerks has a handy too animation sets tool in it's model viewer. 

How does one separate the animations in Maya for Leadwerks to detect? This is a bone rigged pair of hands with a weapon.

 

I'm working in Maya. Not sure if I've ever seen an animation set menu in here.

Link to comment
Share on other sites

Yes, that's what I've ended up figuring out.

I'm currently trying to figure out how to detect the EndAnimation call of an object in C++ so that I can switch to other stuff once a particular animation is done.

I thought it'd be something like 

if (hands_revolver->EndAnimation("fire")) {}

but there's no documentation example for C++ for this as far as I've looked.

Link to comment
Share on other sites

Looks like you found another topic on this but yes, you need to keep track of it yourself because animations can be mixed.

I use model->SetAnimationFrame(animationframe, 0.8, animationstate, true) to set a character's animation every frame.  I increment and keep track of animationframe myself based on how much time has passed since last frame.  Then I use model->GetAnimationLength(animationstate) to check if animationframe has exceeded the end of the animation.  If it has, I reduce it appropriately (which isn't necessarily the same as setting it to 0).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...