# Import and play simple animations of object (of mesh)

**URL:** <https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790>\
**Category:** Questions\
**Created:** [November 17, 2020, 8:00pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790 "2020-11-17T20:00:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [November 17, 2020, 8:00pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/1 "2020-11-17T20:00:09Z")

</div>

Hi there, I’m looking for an example of how to load an animated 3D object(glb, babylon…) into babylon.js and then play it.  
In 3ds max, I create a simple cube and animate it by using the bend modifier. When I export to glb or babylon - the animation does not work. I’ve seen many examples of how to animate bones and play it. Nowhere is any example I described. Thanks in advance for your advice.  
[box\_animated.zip](https://forum.babylonjs.com/uploads/short-url/oiz08rhP3E0BQBU0DSYhcoSN4Hn.zip) (6.4 KB)

---

<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:** [November 17, 2020, 9:54pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/2 "2020-11-17T21:54:27Z")

</div>

can you share your model (the glb file?)

---

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [November 18, 2020, 8:46am UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/3 "2020-11-18T08:46:31Z")

</div>

Yes, its shared now.

---

<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:** [November 18, 2020, 3:27pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/4 "2020-11-18T15:27:21Z")

</div>

Your file does not contain any animation. You could never the less manually add some like in those examples:

> **[Animation | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/animation)**
>
> Deep dive into the wonderful world of Animation in Babylon.js.

---

<div class="post-metadata">

**Author:** ![Johny\_Mickey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johny_mickey/32/24948_2.png) [@Johny\_Mickey](https://forum.babylonjs.com/u/Johny_Mickey)\
**Post date:** [November 18, 2020, 6:03pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/5 "2020-11-18T18:03:25Z")

</div>

The referenced material is good, thank you but my problem does not describe. I did not find how to prepare the animation in a 3D program like 3ds max and so on. How to do it properly, it means exported it into glb format and then it can be presented in the babylonl.js engine. Please watch the video as I progress. Please correct my progress, thank you very much in advance.[import\_animation.zip](https://forum.babylonjs.com/uploads/short-url/bk4tyyruBgsh7CSAiwu15q1IVH.zip) (2.4 MB)

[https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/e77757c369608f685e03d203426e1ea2db4b94d8.mp4](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/e/e77757c369608f685e03d203426e1ea2db4b94d8.mp4)

---

<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:** [November 18, 2020, 7:43pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/6 "2020-11-18T19:43:55Z")

</div>

Adding @PatrickRyan for this part as he will be a way better asset than me here.

---

<div class="post-metadata">

**Author:** ![PatrickRyan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/patrickryan/32/3417_2.png) [@PatrickRyan](https://forum.babylonjs.com/u/PatrickRyan)\
**Post date:** [November 18, 2020, 10:19pm UTC](https://forum.babylonjs.com/t/import-and-play-simple-animations-of-object-of-mesh/15790/7 "2020-11-18T22:19:39Z")

</div>

@Johny_Mickey, unfortunately the bend operation in Max is a per-vertex animation through a deformer that does not use a skeleton. Right now, we don’t support per-vertex, per-frame animation. You will need to create a skinned mesh with a skeleton. You then apply the animation to the skeleton and the skinning information will handle the vertex offset from the bones.

In terms of how to create a skinned mesh, there are a ton of resources out there for this. A simple google search for [“skinning and rigging a model for animation in 3ds Max”](https://www.google.com/search?sxsrf=ALeKk02M5f1agJHhA9YLMpFbZWrLAM5KTQ%3A1605737895694&source=hp&ei=p521X6PKJ8PQ-gTvoZXwBg&q=skinning+and+rigging+a+model+for+animation+in+3ds+Max&oq=skinning+and+rigging+a+model+for+animation+in+3ds+Max&gs_lcp=CgZwc3ktYWIQAzIFCCEQqwJQ9BRY9BRg5x9oAHAAeACAAXOIAXOSAQMwLjGYAQCgAQKgAQGqAQdnd3Mtd2l6&sclient=psy-ab&ved=0ahUKEwjjuf3mj43tAhVDqJ4KHe9QBW4Q4dUDCAk&uact=5) should get you plenty of resources to create the type of model you need.
