# Clone mesh and keep skeleton position

**URL:** <https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981>\
**Category:** Questions\
**Created:** [January 21, 2022, 10:06am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981 "2022-01-21T10:06:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonmai7195](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sonmai7195/32/20652_2.png) [@sonmai7195](https://forum.babylonjs.com/u/sonmai7195)\
**Post date:** [January 21, 2022, 10:06am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/1 "2022-01-21T10:06:39Z")

</div>

With the sample below, please help me clone the mesh(the plane) and keep the skeleton position the same original mesh.

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#1BZJVJ%23694)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [January 21, 2022, 10:23am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/2 "2022-01-21T10:23:50Z")

</div>

I would do it with the help of `container.instantiateModelsToScene()` function - [https://playground.babylonjs.com/#AJA5J6#137](https://playground.babylonjs.com/#AJA5J6#137)

---

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [January 21, 2022, 10:43pm UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/3 "2022-01-21T22:43:38Z")

</div>

Just wanted to add that each model has its own animationGroups array which makes it easier to find the right animation group, rather than using scene.animationGroups. 🙂

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

---

<div class="post-metadata">

**Author:** ![sonmai7195](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sonmai7195/32/20652_2.png) [@sonmai7195](https://forum.babylonjs.com/u/sonmai7195)\
**Post date:** [January 24, 2022, 7:35am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/4 "2022-01-24T07:35:39Z")

</div>

I just want to clone the mesh no animationGroups

I have the model and I resize it by skeleton(bones), after that, I want to clone the model resized, but when I use the mesh.clone() function then I get a new model with the original size(old size)

With the below sample then the expected result is: Propellor will have position.y = 10

> **[Babylon.js Playground](https://www.babylonjs-playground.com/#1BZJVJ%23694)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [January 24, 2022, 11:25am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/5 "2022-01-24T11:25:26Z")

</div>

Could you tell if this example of cloning and scaling is good for you? - [https://playground.babylonjs.com/#AJA5J6#143](https://playground.babylonjs.com/#AJA5J6#143)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/b/6b62789f0a36cfb60851569e83b305a81948bdc6.png)

---

<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:** [February 22, 2022, 11:09am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/6 "2022-02-22T11:09:24Z")

</div>

Hello @sonmai7195 just checking in, was your question answered? 🙂

---

<div class="post-metadata">

**Author:** ![sonmai7195](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sonmai7195/32/20652_2.png) [@sonmai7195](https://forum.babylonjs.com/u/sonmai7195)\
**Post date:** [March 15, 2022, 8:23am UTC](https://forum.babylonjs.com/t/clone-mesh-and-keep-skeleton-position/26981/7 "2022-03-15T08:23:54Z")

</div>

Thanks @carolhmj my issue is resolved.
