Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XGen Python API missing

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
EthanShilling
926 Views, 3 Replies

XGen Python API missing

 

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
Tags (2)
3 REPLIES 3
Message 2 of 4

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. 

Message 3 of 4

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

 

Message 4 of 4
morten_bohne
in reply to: morten_bohne

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report