I imported the mesh and animations. There are problems with the export from Maya. I used the Babylon Exporter, it works(I think), but when I try to import it, it doesn’t show in the scene. So I exported it as a fbx file and then imported it in Blender and then exported it as .glb(WITHOUT the babylon plugin) just with the default blender .glb, the mesh and animation shows and plays. But when I try to get the skeleton from the array, the array has 0 skeletons. The animations play when the mesh is imported. It just that I can’t control it, it just plays all the animations in order and repeatedly.
It just doesn’t appear there in the code. There is definitely a skeleton there because when I import the model, the animations plays right away after the mesh is appended in the scene. BUT when I use the skeleton from the callback, it appears to be nothing in the array. And also I’m not sure how to divide the animations before exporting the model. It’s all so unintuitive.
When exporting from Maya there are a few things you need to make sure you have set up correctly. The first thing is to make sure that you have the Export skins box checked or the skinning information will not be exported and no animations will work on your mesh. The second is to make sure the Export Animations box is checked to ensure the animation data is also exported.
If you have Export only selected checked, you must be sure to select your mesh and skeleton nodes in your scene when exporting. If you are exporting selected and do not select the skeleton, it doesn’t matter if you have the export skins or export animations checked as there would be no underlying skeleton in the scene to deform the mesh.
Lastly, if you want to separate animation clips, you can do that with the animation groups options in the Babylon tools menu.
In this window, you can add an animation group and assign a frame range for the group. You can then address this named group in your code to play just that section of the timeline. If these suggestions don’t help unblock you, I agree with @bghgary that the fastest way to help is if you can provide your file, or a test file if you are unable to share your asset that has a simple skinned mesh that repros your issue we can help debug the process.