I figured it out.
To play skeleton animations exported from blender take a look here - https://www.babylonjs-playground.com/#TH16ID#10
Or just use this code below to import your glb or gltf file and then play a skeleton/bone/armature animation.
// import glb
var exampleGLB = BABYLON.SceneLoader.Append(
“filePathToYourGLTF”,
“fileName.glb”,
scene,
function(scene) {
// Play animation
scene.animationGroups[0].play(true);
}
);
I love babylon sometimes … this is so simple and freaking awesome!