Alright so Idk why but all of a sudden it works now and i didn’t even change nothing lol
So just to recap for the guy rippin their hair out all you do is import the .babylon file created by blender
BABYLON.SceneLoader.ImportMesh("Cube","", "bot.babylon", scene, function (newMeshes, particleSystems, Armature) {
var dude = newMeshes[0];
scene.beginAnimation(Armature[0], 0, 40, true, 1.0);
})
Where cube is the mesh name from blender the next “” is the folder location next is the babylon file, then scene then the function which i guess somehow the sceneloader passes the variables to. Then you make variable set to the newMeshes and your animation should be automatically attached with the mesh automatically because of ImportMesh Function.
Now if that don’t work then it’s probably something in blender export so play around with that and check that animation is being loaded with console.log(Variable for skeleton) to see if it exists.
Now to tackle the next problem.