# BLEND animations

**URL:** <https://forum.babylonjs.com/t/blend-animations/24990>\
**Category:** Questions\
**Tags:** gui, animation\
**Created:** [November 3, 2021, 6:26pm UTC](https://forum.babylonjs.com/t/blend-animations/24990 "2021-11-03T18:26:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laureano](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/laureano/32/10237_2.png) [@Laureano](https://forum.babylonjs.com/u/Laureano)\
**Post date:** [November 3, 2021, 6:26pm UTC](https://forum.babylonjs.com/t/blend-animations/24990/1 "2021-11-03T18:26:21Z")

</div>

Hello Everyone!  
I am trying to blend animations of one single charcter but not really understanding how that goes.  
I would like to change them width a function using a blend between this actions.

I tried to upload the code in a sandbox. but couldn’t load the glb width the rigged charecter. for the purpose of showing you my assets i uploaded them in this folder.  
you can get the glb from here  
[https://www.laureano.xyz/corre/borracho.glb](https://www.laureano.xyz/corre/borracho.glb)

in this html I added a some behavours to but i am just putting play and stop to the different animations.  
[https://www.laureano.xyz/corre/index0.html](https://www.laureano.xyz/corre/index0.html)

var idle = scene.getAnimationGroupByName(“pausa”);  
var running =scene.getAnimationGroupByName(“corriendo”);  
running.loopAnimation=true;  
idle.loopAnimation=true;  
running.play ();  
for example… and that works but is just play stop.  
I tried to acces the bones like in this example  
[https://playground.babylonjs.com/#BCU1XR#0](https://playground.babylonjs.com/#BCU1XR#0)  
but didn’t work for me. .I don’t know if I am doing something wrong when I export from Blender.

We’ll I hope someone can give me a hand on this.

I am currently creating INTERACTIVEs NFTs using babylon…  
thy look something like this.  
[https://laureano.xyz/corre](https://laureano.xyz/corre)

thanks in advanced

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [November 3, 2021, 11:01pm UTC](https://forum.babylonjs.com/t/blend-animations/24990/2 "2021-11-03T23:01:50Z")

</div>

@Cedric might be able to help!

---

<div class="post-metadata">

**Author:** ![musk](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/musk/32/17156_2.png) [@musk](https://forum.babylonjs.com/u/musk)\
**Post date:** [November 3, 2021, 11:32pm UTC](https://forum.babylonjs.com/t/blend-animations/24990/3 "2021-11-03T23:32:08Z")

</div>

> [@How to find the total number of frames of a skeleton animation?](https://forum.babylonjs.com/t/how-to-find-the-total-number-of-frames-of-a-skeleton-animation/24884/2):
>
> gltf uses animation groups where .babylon uses direct animations.
> 
> So depending on which format you use the info will be in different places (in animationGroup for glTF and directly on the skeleton in .babylon)

I think it’s because of different formats

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [November 4, 2021, 9:03am UTC](https://forum.babylonjs.com/t/blend-animations/24990/4 "2021-11-04T09:03:25Z")

</div>

Once animations come from the same source, you can check this doc page on animation blending

> **[Advanced Animation Methods | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/animation/advanced_animations)**
>
> Dive into some deeper animation methods and techniques.

---

<div class="post-metadata">

**Author:** ![Laureano](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/laureano/32/10237_2.png) [@Laureano](https://forum.babylonjs.com/u/Laureano)\
**Post date:** [November 4, 2021, 12:07pm UTC](https://forum.babylonjs.com/t/blend-animations/24990/5 "2021-11-04T12:07:44Z")

</div>

Thanks a lot from Your quick advice!!

So I asume I have to use a example.babylon file.  
Wich is the proper way to create that?

I tried to install this addOn for Blender

> **[GitHub - BabylonJS/BlenderExporter: Exports From Blender to Babylon.JS in JSON...](https://github.com/BabylonJS/BlenderExporter)**
>
> Exports From Blender to Babylon.JS in JSON / .babylon format - GitHub - BabylonJS/BlenderExporter: Exports From Blender to Babylon.JS in JSON / .babylon format

But doesn’t show up in blender, after importing the .zip file.

My second aproach was to send the GLB to the sandbox. and there’s an option that says “EXPORT TO BABYLON” . That actually if I imported back to the sandbox, shows the content but doesn’t work inside my babylon project.

In my process I starte folowing this video to mix the animations

[![](https://img.youtube.com/vi/9EWJhqPafpk/maxresdefault.jpg "Combining Mixamo animations in Blender 2.8 for BabylonJS") ](https://www.youtube.com/watch?v=9EWJhqPafpk)

Sorry if I am confussing, but didn’t find much tutorias about this issues. Of sending animations to babylon

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [November 4, 2021, 12:51pm UTC](https://forum.babylonjs.com/t/blend-animations/24990/6 "2021-11-04T12:51:46Z")

</div>

Don’t worry, asking questions and trying things out is the best way to learn 🙂  
Have you checked out this tutorial here? [Mixamo to Blender to Babylon.js | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/extensions/Exporters/Mixamo_to_Babylon)

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [December 3, 2021, 1:26pm UTC](https://forum.babylonjs.com/t/blend-animations/24990/7 "2021-12-03T13:26:53Z")

</div>

@Laureano hi, just checking in if you were able to get your animations working or if you want some more help? 😃
