# Maya MorphTarget

**URL:** <https://forum.babylonjs.com/t/maya-morphtarget/4599>\
**Category:** Content creation (3dsMax, Maya, Blender, glTF)\
**Created:** [July 19, 2019, 8:19am UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599 "2019-07-19T08:19:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 19, 2019, 8:19am UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/1 "2019-07-19T08:19:06Z")

</div>

Is there something special to get morph targets exported.?  
I cant get it to work.

 ![morph](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/882e963e96bc48380a7e13927da14ef15937224b.jpeg)

---

<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:** [July 19, 2019, 3:39pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/2 "2019-07-19T15:39:34Z")

</div>

Pinging @Drigax

---

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 24, 2019, 12:09pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/3 "2019-07-24T12:09:57Z")

</div>

@Drigax any news?

---

<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:** [July 24, 2019, 4:54pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/4 "2019-07-24T16:54:45Z")

</div>

Sorry, this thread got lost in the mix. I’m not aware of any open issues with exporting morphtargets in Maya. Though as I refactor the Maya codebase, I’m seeing some disparity between the Babylon and Gltf export paths, there a good chance that this was only fully functional when exporting gltf

I can test going through the workflow of setting them up from scratch, but please feel free to send me your scene so I can take a closer look at 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:** [July 24, 2019, 6:30pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/5 "2019-07-24T18:30:37Z")

</div>

@oglu,

I’m not sure what you’re running into here. I created a scene in Maya 2019 with a basic UV sphere and a created a blend shape attribute with a few morph targets:

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

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

It looks like both the .babylon and .glTF export paths preserve the morph targets properly for me.

---

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 25, 2019, 9:28am UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/6 "2019-07-25T09:28:30Z")

</div>

I will do an other test and report back.  
Thanks

---

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 25, 2019, 1:47pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/7 "2019-07-25T13:47:12Z")

</div>

still not working.  
here is the maya file.

[dmorph.zip](https://forum.babylonjs.com/uploads/short-url/tLodjVInwQM5nwVo1jIjt8ABdKy.zip) (15.5 KB)

---

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 25, 2019, 1:51pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/8 "2019-07-25T13:51:57Z")

</div>

Found the issue. You need to clone the object first and add the morphtargets the “old” way.  
Is there any way that we dont have to use this outdated workflow?

---

<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:** [July 25, 2019, 6:10pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/9 "2019-07-25T18:10:28Z")

</div>

I wasn’t aware there was an alternative workflow, how do you create morph targets without cloning the original mesh?

---

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 25, 2019, 6:48pm UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/10 "2019-07-25T18:48:49Z")

</div>

Just click on “Add Target” in the UI.  
If you work that way you could change the topo and the blendshapes does still work.

---

<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:** [July 26, 2019, 12:19am UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/11 "2019-07-26T00:19:54Z")

</div>

Ah, I see! I talked with @PatrickRyan, he helped me understand this as well, thanks.

Currently I’m unsure if we can support this without some major effort, I’m mostly concerned about investigating the OpenMaya API to see if we can reconstruct the target mesh from the blend shape data. The .Babylon spec requires that blendshapes/morphtargets are represented as full meshes, rather than transforms from the original mesh, and we derive the glTF from that format.

If there’s an easy way to get this per-vertex data, then it _should_ be doable.

---

<div class="post-metadata">

**Author:** ![oglu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/oglu/32/1677_2.png) [@oglu](https://forum.babylonjs.com/u/oglu)\
**Post date:** [July 26, 2019, 4:53am UTC](https://forum.babylonjs.com/t/maya-morphtarget/4599/12 "2019-07-26T04:53:51Z")

</div>

Thanks for the info.  
For now we do it the old way.
