XGen Python API missing

XGen Python API missing

EthanShilling
Contributor Contributor
1,482 Views
3 Replies
Message 1 of 4

XGen Python API missing

EthanShilling
Contributor
Contributor

 

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:

 

http://download.autodesk.com/global/docs/maya2014/en_us/index.html?url=files/GUID-33ECC43B-5CF6-4BE1...

 

I can't seem to find any answers to this on Google etc.

 

Ethan Shilling

ethanshilling.co.uk
0 Likes
Accepted solutions (1)
1,483 Views
3 Replies
Replies (3)
Message 2 of 4

vijaya.prakash
Alumni
Alumni
Accepted 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. 

0 Likes
Message 3 of 4

morten_bohne
Advocate
Advocate

i'm having a similar problem when trying to import xgen or xgenm through mayapy

 

0 Likes
Message 4 of 4

morten_bohne
Advocate
Advocate

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

0 Likes