Home Website Youtube GitHub

Export and Import skin in reference geometries

Hello team!

I’ve run into a bug again that in the past I was able to workaround, but this time it’s going to be more complicated for me.

When I have a reference maya if I try to import a skinpack or export a skinpack, I get an error.

I also get an error when I do it per individual object.

It loads the bones in the object, but with a broken/default skin.

Here is a sample in the gif. I’ve been looking at it for a while but I’m not sure.

  • First time I have a geo no reference and with a custom skin (draft test).

  • I delete the geometry and add new one by reference no namespace

  • Load the skin and load the joints but not load the weights from the data getting this warning:
    // Warning: Object: pSphere1 Skipped. Can NOT be found in the scene //

  • Also if I try export a skin from a reference object I have an error.

Thanks in advance!

Maya version 2022/2024

mGear version 4.2.5

P.D. I’ve added the post in Bug but please feel free to let me know if that is the correct category, thanks!

Error from export skin:

#   File "\Roaming\Python\Python310\site-packages\pymel\internal\factories.py", line 855, in callback
#     res = origCallback(*newargs)
#   File \mgear_4.2.5\release\scripts\mgear\core\skin.py", line 336, in exportSkinPack
#     if exportSkin(filePath, [obj], use_json):
#   File "\mgear_4.2.5\release\scripts\mgear\core\skin.py", line 277, in exportSkin
#     collectData(skinCls, dataDic)
#   File "\mgear_4.2.5\release\scripts\mgear\core\skin.py", line 202, in collectData
#     collectInfluenceWeights(skinCls, dagPath, components, dataDic)
#   File "\mgear_4.2.5\release\scripts\mgear\core\skin.py", line 167, in collectInfluenceWeights
#     weights = getCurrentWeights(skinCls, dagPath, components)
#   File \mgear_4.2.5\release\scripts\mgear\core\skin.py", line 157, in getCurrentWeights
#     skinCls.__apimfn__().getWeights(dagPath, components, weights, pUInt)
# RuntimeError: (kInvalidParameter): Object is incompatible with this method //

Hey @chrislesage @Miquel !

Do you have any idea about this?

Thanks!

Hi @Ignacio_Santalla
Reference models are not supported with SkinIO. :sweat_smile: