When I try to import the xgen api in python, it says it can't find the xgen module. (I have the xgen plugins loaded if that is relevant)
The documention for Maya 2014 ext and 2015 clearly state how to use it:
I can't seem to find any answers to this on Google etc.
Solved! Go to Solution.
Solved by vijaya.prakash. Go to Solution.
If you use Autodesk Maya 2015 or Maya 2014 extension, here is the answer. We should use "import xgenm" instead of "import xgen". I have tried it in my side and it is working fine.
i'm having a similar problem when trying to import xgen or xgenm through mayapy
was a bit too fast there
As far as i can see, the xgen library is not in the python path (the plugin is loaded).
i fixed like this:
import sys
sys.path.append('C:/Program Files/Autodesk/Maya2015/plug-ins/xgen/scripts')
import maya.standalone
maya.standalone.initialize("Python")
import xgenm