mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
264 stars 93 forks source link

Shifter: Guide Import error #201

Closed liudger closed 1 year ago

liudger commented 1 year ago

When importing the whole guide something goes wrong.

1.21053791046 time elapsed running draw_guide
# Traceback (most recent call last):
#   File "/Users/liudger/Library/Preferences/Autodesk/maya/modules/scripts/mgear/shifter/guide_template_explorer.py", line 103, in import_template
#     io.import_partial_guide(conf=template)
#   File "/Users/liudger/Library/Preferences/Autodesk/maya/modules/scripts/mgear/shifter/io.py", line 143, in import_partial_guide
#     partial_names, partial_idx = rig.guide.draw_guide(partial, initParent)
#   File "/Users/liudger/Library/Preferences/Autodesk/maya/modules/scripts/mgear/core/utils.py", line 232, in wrap
#     raise e
# RuntimeError: setAttr: Error reading data element number 1: 
# 

It looks like it tries to import the partial guide?

Maya 2020 MacOS

miquelcampos commented 1 year ago

Hi @liudger

I understand this is when import from the shifter >> Guides templates sample, Correct? or is another serialised guide?

liudger commented 1 year ago

image from this menu from the shifter guide manager, but it seems that it could have been something in the guid itself that caused the error. It seems to work now again. If needed I could open old file and try to find why it happened

miquelcampos commented 1 year ago

If it this is one off I think is not needed for further research.
I will close that ticket but feel free to re-open it if you find more information about the topic. Thanks