# Rig export from maya : problem or bug?

**URL:** <https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858>\
**Category:** Questions\
**Created:** [July 26, 2020, 1:22pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858 "2020-07-26T13:22:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thibaut/32/45514_2.png) [@Thibaut](https://forum.babylonjs.com/u/Thibaut)\
**Post date:** [July 26, 2020, 1:22pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/1 "2020-07-26T13:22:53Z")

</div>

Hello all,

I switched to maya and i encounter some problems. I’m not quite sure i do something wrong or this is a bug. I never had this issue on blender.

I have a riged character, 80 bones, animation backed on the bones.  
When i export it as babylon file, it’s creating a weird skeleton architecture with lots of skeleton groups (i expected to have just one) above my bones. It’s like it’s duplicating many bones on different skeleton groups.  
While i have 80 bones on maya (and nothing else except skinned geometry) i obtain more than 600 bones duplicated on different skeleton groups (more than 45 groups) in BJS.  
What’s weird is that the animation is correct, and it runs well even on smartphones, it’s like excess bones are not taken into account.

I really don’t understand what i’m doing wrong as i never encountered this problem with blender.

Here some screen shots

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/3ac6989686a0ea37522100b3a258af93fc02f6cb.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/b/b62a7bec4c9bc8b56e5fd139141f2a9cdb6d28ab.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/6/6947e40cbcc85609d4831ba6832e98d5855a1975.jpeg)

---

<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:** [July 27, 2020, 1:04pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/2 "2020-07-27T13:04:09Z")

</div>

Adding @Drigax who gives a lot of love to our exporters 😉

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thibaut/32/45514_2.png) [@Thibaut](https://forum.babylonjs.com/u/Thibaut)\
**Post date:** [July 28, 2020, 7:22am UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/3 "2020-07-28T07:22:21Z")

</div>

Thank you @sebavan i’m trying to find on my own the source of the problem but for the moment i’m stuck.

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thibaut/32/45514_2.png) [@Thibaut](https://forum.babylonjs.com/u/Thibaut)\
**Post date:** [August 5, 2020, 9:49am UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/4 "2020-08-05T09:49:32Z")

</div>

Hello @sebavan and @Drigax  
I’m always stuck on that export problem, it’s creating creazy number of skeletons groups.  
Is there a way to clean that by hand ?

Thank you

---

<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:** [August 11, 2020, 3:47pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/5 "2020-08-11T15:47:04Z")

</div>

Can you share your Maya scene? The exporters are pretty complex, so there could be any number of reasons why its importing into babylon with so many skeleton definitions.

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thibaut/32/45514_2.png) [@Thibaut](https://forum.babylonjs.com/u/Thibaut)\
**Post date:** [September 11, 2020, 10:41am UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/6 "2020-09-11T10:41:26Z")

</div>

I come back here as i made different test.

The character is made like a robot of different pieces rigged to the bones.  
Trying to understand what’s going wrong, i made a lot of test on my main maya scene thinking i did something wrong. But i couldn’t find the origin of the problem.  
I must had test a synthetic and more simple scene first. So i tried to mimic my scene characteristics but with fewer simple elements.

You can find the playground of my scene here, and a screen of the scene in maya and the exporter below.  
[https://playground.babylonjs.com/#HX2ALT](https://playground.babylonjs.com/#HX2ALT)

My maya scene is composed of 7 bones with 4 objects binded to somes bones.

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

When i export that, i obtain 3 skeleton groups, each one composed of different number of bones depending on which bone hierarki the object is binded. So why not 4 skeleton groups instead of 3 as i have 4 objects ?  
Each skeleton group will have different number of bones, depending on the place of the bone in the hierarki binded to the object.

May be i do not understand well how babaylonJS work, but is this normal ?

I will try to replicate that test on blender to see what happen

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thibaut/32/45514_2.png) [@Thibaut](https://forum.babylonjs.com/u/Thibaut)\
**Post date:** [September 11, 2020, 12:58pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/7 "2020-09-11T12:58:54Z")

</div>

Ok so i made the same test on blender and i got a different result.  
No more multiple skeleton groups with redundant bones

[https://playground.babylonjs.com/#HX2ALT#3](https://playground.babylonjs.com/#HX2ALT#3)

---

<div class="post-metadata">

**Author:** ![reimund](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/reimund/32/7309_2.png) [@reimund](https://forum.babylonjs.com/u/reimund)\
**Post date:** [September 11, 2020, 2:07pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/8 "2020-09-11T14:07:49Z")

</div>

Just a thought, could it be related to the number of meshes bound to the skeleton?

I’ve seen it as well and I always figured it was since I had two meshes bound to the same skeleton.

---

<div class="post-metadata">

**Author:** ![Thibaut](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/thibaut/32/45514_2.png) [@Thibaut](https://forum.babylonjs.com/u/Thibaut)\
**Post date:** [September 11, 2020, 10:05pm UTC](https://forum.babylonjs.com/t/rig-export-from-maya-problem-or-bug/12858/9 "2020-09-11T22:05:40Z")

</div>

Hello,

Yes it seems to be related to the number of mesh bound to the bones.  
But, i got this on maya, but not on blender.

It must be a bug, or may be i’m doing something wrong, but i really do not understand what as i’m able to do it well on blender and not on maya.
