Re: [Maya-Python] sitecustomize.py help

2010-04-11 Thread Judah Baron
We use a minimal sitecustomize.py, but it's intentionally minimal - it just copies data from a buffer var into PYTHONPATH. We don't use the maya.env file at all because we need all of our tools to run from similarly configured environments. We do this with data from xml files. We also do not use th

Re: [Maya-Python] sitecustomize.py help

2010-04-11 Thread Ian Jones
I use a sitecustomize.py for our general python packages and a seperate usersetup.py (right beside the sitecustomize.py) to handle specific items for maya. It cuts down the sitecustomize into more manageable pieces and seems to be working out well for us. Ian On Sun, Apr 11, 2010 at 8:06 PM, Da

Re: [Maya-Python] sitecustomize.py help

2010-04-11 Thread David Shaw
Thank you Paul, much appreciated. Do you think the approach I am taking is feasible or practical? How do you guys go about it? Dave On Mon, Apr 12, 2010 at 1:55 AM, Paul Molodowitch wrote: > In a nutshell - yes, it's probably failing because cmds hasn't been > properly initialized yet. > The

Re: [Maya-Python] Re: Basic pymel questions

2010-04-11 Thread Te Wilson
Do the pymel installs build on one another i.e do I need 0.9.2 and 1.0.1 to have all access to all the pymel functions? On Wed, Apr 7, 2010 at 9:15 AM, shawnpatapoff wrote: > Excellent, thank you very much. > > On Apr 7, 12:13 am, Ofer Koren wrote: > > pymel functions are equivalent to maya.cmds

Re: [Maya-Python] New Space-Switching Script

2010-04-11 Thread Te Wilson
Hey JP, Pretty slick, I haven't animated with it but the first intital test seemed to work pretty well. So I am trying to cut my teeth with classes and instances when and where to best utilize class functions. Did you discover resaons or have suggestions "WHY to create classes, WHEN to create them

Re: [Maya-Python] sitecustomize.py help

2010-04-11 Thread Paul Molodowitch
In a nutshell - yes, it's probably failing because cmds hasn't been properly initialized yet. The deal with maya.cmds is that's it's actually an empty module, whose contents are filled in during maya's initialization process. That's why you were able to import it, but not call anything useful with

[Maya-Python] sitecustomize.py help

2010-04-11 Thread David Shaw
Hey folks, I've setup a sitecustomize.py script which is located in a Maya module path to customise our Maya setup on launch It basically queries a custom Maya environment variable located in the * maya.env* called "*PYTHON_SITEPACKAGES*" with the following path: "*D:/pipeline_tools/python/site-p