Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Environment Variables?
  RSS 2.0 ATOM  

Environment Variables?
Rate this thread
 
51803
 
Permlink of this thread  
avatar
  • yot
  • Posted: 28 January 2011 06:31 PM
  • Total Posts: 1
  • Joined: 07 February 2007 04:25 PM

I’m using Eclipse, and have not been able to get any of maya.cmds to work
importing maya.cmds works, however a dir on maya and cmds results in the following

I’ve tried adding “C:\Program Files\Autodesk\Maya2011\Python\Lib\site-packages” to Eclipse’s PYTHONPATH, but have no idea what to add to my computers Environment variables. Can someone give me a pointer on what do so I can use import maya.cmds as cmds, cmds.sphere() for example

import maya
print 'maya\n'dir(maya)

from maya import cmds
print 'cmds\n'dir(cmds)

maya
[’__builtins__’, ‘__doc__’, ‘__file__’, ‘__name__’, ‘__package__’, ‘__path__’]
cmds
[’__builtins__’, ‘__doc__’, ‘__file__’, ‘__name__’, ‘__package__’, ‘__path__’]



Replies: 0