# Snadbox not exporting animation on save

**URL:** <https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054>\
**Category:** Questions\
**Created:** [May 8, 2019, 9:42am UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054 "2019-05-08T09:42:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stezza](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/stezza/32/1927_2.png) [@stezza](https://forum.babylonjs.com/u/stezza)\
**Post date:** [May 8, 2019, 9:42am UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/1 "2019-05-08T09:42:08Z")

</div>

Hi folks.  
When I export my Bab file from Maya and open it in sandbox all seems fine. But when I make a material change then export Babylon from sandbox it doesnt save out the animation groups that came in with it.

Is this a limitation or workflow mistake.

Cheers

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 8, 2019, 4:05pm UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/2 "2019-05-08T16:05:35Z")

</div>

This is not expected  
Pinging @Drigax  
Can you share the file and the walkthrough?

---

<div class="post-metadata">

**Author:** ![stezza](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/stezza/32/1927_2.png) [@stezza](https://forum.babylonjs.com/u/stezza)\
**Post date:** [May 8, 2019, 5:06pm UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/3 "2019-05-08T17:06:11Z")

</div>

Hi Deltakosh.  
Thanks for getting back.  
I do have an NDA in place so cant share the exact file but I will prepare another and send that.

Back soon.

---

<div class="post-metadata">

**Author:** ![stezza](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/stezza/32/1927_2.png) [@stezza](https://forum.babylonjs.com/u/stezza)\
**Post date:** [May 8, 2019, 5:18pm UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/4 "2019-05-08T17:18:27Z")

</div>

[cube\_export.zip](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/a/a2df3a835db113a28cd8c8c091265449ff7cee50.zip) (4.2 KB)

1. OK here are the steps.
2. Open attached scene in sandbox - will see the animation playing.
3. Change the colour of a material and export from sandbox as babylon.
4. Drag and drop the saved scene file into sandbox and animation is not imported.

You can use any animated scene.

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 9, 2019, 6:16pm UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/5 "2019-05-09T18:16:19Z")

</div>

Thanks for the repro. Yikes, I’ll try to see what’s going on at export time.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 9, 2019, 8:23pm UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/6 "2019-05-09T20:23:25Z")

</div>

(If it is not an easy fix, please open an issue so we can track it)

---

<div class="post-metadata">

**Author:** ![Drigax](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/drigax/32/16585_2.png) [@Drigax](https://forum.babylonjs.com/u/Drigax)\
**Post date:** [May 9, 2019, 10:58pm UTC](https://forum.babylonjs.com/t/snadbox-not-exporting-animation-on-save/3054/7 "2019-05-09T22:58:36Z")

</div>

Looks like we’re serializing Animations, but not AnimationGroups. Looked like a pretty trivial fix to add serialization for AnimationGroups and their dependency.

> <https://github.com/BabylonJS/Babylon.js/pull/6333>

should be sufficient for fixing this.
