Animations from blender don't works in sandbox

i export from Blender two animations and save it .glb.
when i try to import to the babylon sandbox only play 1 animation of two.

any idea to solve this problem??
i think animate the objects in other scenes and importing in sanbox and after export and finally import to my scene in code and set the position that i need. but i guess i a lot of work.

thanks and regards.

About the first point, sharing your glb would help to understand.

About the rest of the question I am totally not sure to understand what you are trying to do ?

when I export from blender sport the scene with two animations, a car and a tree. but when imported to Babylon sandbox, only import one animation not both.
i need in the same scene of sandbox play the two animations (the car and the tree).

Yup this should work I guess but it depends how blender is exporting them. could you share the exported gLB ?

i don’t know how share here, but i upload the file in mega

They are both available and working in the sandbox, you can see which one to play at the bottom image

hoooo wtf!!!,
when i export from sandbox and i import to my server code how i can play both in the same time?

to load the 3d model i use this code

      BABYLON.SceneLoader.ImportMesh("", "", "escena_glb_animada_02.glb", scene, function (meshes) {
            camera.target = meshes[0];
            meshes[0].checkCollisions = true;
                meshes.forEach(mesh => {
                    mesh.checkCollisions = true;
                    
                })

            

you could try there :slight_smile:

scene.animationGroups.forEach((animationGroup) => {
  animationGroup.reset();
  animationGroup.restart();
});

you could also use this:

BABYLON.SceneLoader.OnPluginActivatedObservable.add((loader) => {
  if (loader.name === "gltf") {
    loader.animationStartMode = BABYLON.GLTFLoaderAnimationStartMode.ALL;
  }
});

before your loading code so by default all the anim group would play.

thank you very much master.
this works really fine.

1 Like