EpicGames / MetaHuman-DNA-Calibration

https://epicgames.github.io/MetaHuman-DNA-Calibration/
Other
436 stars 116 forks source link

Maya python- It's trying to get the DNA.py module from the wrong location #23

Closed mussupaa closed 1 year ago

mussupaa commented 1 year ago

So I had dnacalib working before. But then i opened up a character from quixel bridge. And now it is looking at the wrong dna.py file. So I get an error with any of the example scripts.

Error: ImportError: file line 33: cannot import name 'BinaryStreamReader' from 'dna' (F:/BX/Bridge/support/plugins/maya/7.0/MSLiveLink/DHI/lib/Windows/python3\dna.py)

I have tried setting the module path in maya.env to no avail. How can I reset the location used for the dna module?

smilicev commented 1 year ago

I presume that you used this to setup your environment?

If you still have problems, try to reorder or even delete Bridge from MAYA_MODULE_PATH, and restart Maya after that. With newer version of Bridge this issue will be fixed. Release date for Bridge is TBD.

mussupaa commented 1 year ago

Oh I had tried updating maya.env instead of adding MAYA_MODULE_PATH as a system variable. It now works, thanks for your response!

smilicev commented 1 year ago

Great! I will close this issue then.