LumaPictures / pymel

Python in Maya Done Right
Other
478 stars 130 forks source link

pymel.tools.mel2py is not work. #465

Closed CharlesTin0122 closed 1 year ago

CharlesTin0122 commented 1 year ago

pymel.tools.mel2py is not work. mel_command = 'polyCube -w 1 -h 1 -d 1 -sx 1 -sy 1 -sz 1 -ax 0 1 0 -cuv 4 -ch 1;' pythonCode = mel2py.mel2pyStr(mel_command, pymelNamespace='pm') print(pythonCode)

got error: # Error: AttributeError: file C:\Users\Administrator\AppData\Roaming\Python\Python39\site-packages\pymel\tools\mel2py\melparse.py line 438: 'str' object has no attribute 'lineno'

chadrik commented 1 year ago

this is fixed in pymel 1.3.1