# Advice on playing two animations at once for avatar ( see playground )

**URL:** <https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858>\
**Category:** Questions\
**Created:** [February 21, 2022, 4:44pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858 "2022-02-21T16:44:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [February 21, 2022, 4:44pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/1 "2022-02-21T16:44:25Z")

</div>

-removed old pg-

I saw in some old forum posts it should be possible to play two animations at once. The example above trying to walk and nod the head at the same time. It’s mostly working except somehow hitching at some point during the animations and wondering if anyone had some advice. I have done everything in the code I could find to make sure they are additive and blended enabled.

Also there is a comment about another, shorter nod animation in the `setInterval` which glitches less. There have been some exports as well with very short nod animations that did not glitch at all.

Only the head bone is being animated for nod.

Thanks!

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [February 21, 2022, 7:47pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/3 "2022-02-21T19:47:04Z")

</div>

Back again with updated playground:

> **[Babylon.js Playground](https://playground.babylonjs.com/#YLPEDA%2313)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

This is what it looks like setup for blender export:

 ![image (18)](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/7/0/70bd79370c6d402a8ce85f152677735628ea2fe4.png)

I am no blender expert but checked with the artist into it. There seems to be no keyframes on anything except the head for the nod.

Should it be able to blend together with the walk animation then or am I missing something ?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 21, 2022, 10:09pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/4 "2022-02-21T22:09:56Z")

</div>

Might be a good @Vinc3r or @JCPalmer question. I am so terrible at art tools…

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [February 22, 2022, 8:39am UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/5 "2022-02-22T08:39:15Z")

</div>

I’m not into character animation so can’t help a lot here. Maybe try to bake animation before export? (don’t save after baking) 3D viewport → Object → Animation → Bake Action

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [February 22, 2022, 12:07pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/6 "2022-02-22T12:07:06Z")

</div>

I can have them give that a try! Though I’m not certain that’s going to help these blend together

I am going off this old @Deltakosh post from a while back: [Playing Multiple Animation Groups at Once](https://forum.babylonjs.com/t/playing-multiple-animation-groups-at-once/12406)

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [February 22, 2022, 6:20pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/7 "2022-02-22T18:20:03Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#YLPEDA%2315)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Hey @Vinc3r thanks for looking! I think that had the opposite effect though because now during the nod animation you can see rest of the body has frames baked in. Where in previous example no keys except on the head resulting in t-pose so it won’t conflict with walk animation.

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [February 24, 2022, 6:34pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/8 "2022-02-24T18:34:47Z")

</div>

Ah, have more issues with blender export before we can worry about this. Found the cool `SkeletonViewer` in another thread! Will see how the code works when we have 1 skeleton 😅

 ![Screen Shot 2022-02-24 at 1.02.57 PM](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/a/8ae5c86c7222612ceb3d25da5732e0e1b40f9ce9.jpeg)

---

<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:** [March 24, 2022, 1:06pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/9 "2022-03-24T13:06:39Z")

</div>

Hi @br-matt just checking in, do you still have issues? 🙂

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [March 24, 2022, 6:30pm UTC](https://forum.babylonjs.com/t/advice-on-playing-two-animations-at-once-for-avatar-see-playground/27858/10 "2022-03-24T18:30:07Z")

</div>

Thanks for checking in 🙂 We ended up starting a new thread though and it was solved here: [Getting duplicated armatures when exporting character with animation layers (Nodding and Walking) - #13 by br-matt](https://forum.babylonjs.com/t/getting-duplicated-armatures-when-exporting-character-with-animation-layers-nodding-and-walking/28321/13)
