mangualmanuel Posted December 31, 2014 Share Posted December 31, 2014 Greetings! Anyone know if babylon has a function where I can extract what precise number of keyframe animations a mesh has? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 31, 2014 Share Posted December 31, 2014 http://www.html5gamedevs.com/topic/11274-getting-animation-key-frames-using-babylon/#entry65661 somemesh.animations.length (if I understand your quest correctly) If you wanted the keys... alert(somemesh.animations[0]._keys); oralert(somemesh.animations[0].getKeys()); And of course... how many keys? alert(somemesh.animations[0].getKeys().length); Hope this helps. mangualmanuel 1 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted December 31, 2014 Share Posted December 31, 2014 Beat me. To clarify this is not non-armature animations, like position, rotation, & scaling. Skeletons have their own animations, implemented for each bone. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.