# Failure import json animation from Blender ( decided )

**URL:** <https://discourse.threejs.org/t/failure-import-json-animation-from-blender-decided/1028>\
**Category:** Questions\
**Tags:** bones, blender, json, animation\
**Created:** [October 16, 2017, 5:14pm UTC](https://discourse.threejs.org/t/failure-import-json-animation-from-blender-decided/1028 "2017-10-16T17:14:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasilii](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vasilii/32/530_2.png) [@vasilii](https://discourse.threejs.org/u/vasilii)\
**Post date:** [October 16, 2017, 5:14pm UTC](https://discourse.threejs.org/t/failure-import-json-animation-from-blender-decided/1028/1 "2017-10-16T17:14:09Z")

</div>

Animation model bad working:  
[http://js.otrisovano.ru/tests/09-2botwar/gluk/](http://js.otrisovano.ru/tests/09-2botwar/gluk/)  
Model without animation:  
[http://js.otrisovano.ru/tests/09-2botwar/model/](http://js.otrisovano.ru/tests/09-2botwar/model/)  
Blender scene:  
[http://js.otrisovano.ru/tests/09-2botwar/blender.zip](http://js.otrisovano.ru/tests/09-2botwar/blender.zip)

Before export select all bones and check “Clear Pose Transforms”  
Treejs-exporter:  
 ![pic](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/1X/c3cb67178ed2c1e4e3840444282921a06d7401a8.jpg)

…

---

<div class="post-metadata">

**Author:** ![TheCodeCrafter](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/thecodecrafter/32/50_2.png) [@TheCodeCrafter](https://discourse.threejs.org/u/TheCodeCrafter)\
**Post date:** [October 17, 2017, 2:57pm UTC](https://discourse.threejs.org/t/failure-import-json-animation-from-blender-decided/1028/2 "2017-10-17T14:57:10Z")

</div>

The three.js importer to blender is a little confusing, and I have found it doesn’t always work the way you’d expect. Make sure you’re **not** importing the “scene mesh”, and just the singular “object mesh”

---

<div class="post-metadata">

**Author:** ![vasilii](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vasilii/32/530_2.png) [@vasilii](https://discourse.threejs.org/u/vasilii)\
**Post date:** [October 17, 2017, 5:10pm UTC](https://discourse.threejs.org/t/failure-import-json-animation-from-blender-decided/1028/3 "2017-10-17T17:10:57Z")

</div>

Thanks.  
In another branch I got help:

> [@\[SOLVED\] Problem with animation bones](https://discourse.threejs.org/t/problem-with-animation-bones/1031/9):
>
> Why are you doing this in your draw() function? mesh.morphTargetInfluences[0] = Math.sin(delta) \* 20.0; If you playback the morph target animation with THREE.AnimationMixer, there is no need to manually adjust morphTargetInfluences.

And I do not delete this links:  
[http://js.otrisovano.ru/tests/09-2botwar/gluk/index1.html](http://js.otrisovano.ru/tests/09-2botwar/gluk/index1.html)  
[http://js.otrisovano.ru/tests/09-2botwar/blender.zip](http://js.otrisovano.ru/tests/09-2botwar/blender.zip)  
If anyone need it.

---

<div class="post-metadata">

**Author:** ![TheCodeCrafter](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/thecodecrafter/32/50_2.png) [@TheCodeCrafter](https://discourse.threejs.org/u/TheCodeCrafter)\
**Post date:** [October 17, 2017, 8:10pm UTC](https://discourse.threejs.org/t/failure-import-json-animation-from-blender-decided/1028/4 "2017-10-17T20:10:44Z")

</div>

Alright, thanks for posting those links @vasilii
