Hey all, I had an easy time using the included installer, however I'm having a little trouble with a manual installation (which I need to set up to put the PyMEL resources on our network).
What I'm doing instead of altering the system environment variables or maya.env is running a procedure within usersetup.py that inserts the path to the top-level pymel-1.x.x directory to sys.path. Here is my sys.path after inserting: for p in sys.path: print p C:/Users/John/Documents/maya/scripts/pymel-1.0.0b2 C:\Program Files\Autodesk\Maya2009\bin C:\Program Files\Autodesk\Maya2009\bin C:\Program Files\Autodesk\Maya2009\bin\python25.zip C:\Program Files\Autodesk\Maya2009\Python\DLLs C:\Program Files\Autodesk\Maya2009\Python\lib C:\Program Files\Autodesk\Maya2009\Python\lib\plat-win C:\Program Files\Autodesk\Maya2009\Python\lib\lib-tk C:\Program Files\Autodesk\Maya2009\Python C:\Program Files\Autodesk\Maya2009\Python\lib\site-packages C:/Users/John/Documents/maya/2009-x64/prefs/scripts C:/Users/John/Documents/maya/2009-x64/scripts C:/Users/John/Documents/maya/scripts C:/Users/John/Documents/maya/scripts/.svn C:/Users/John/Documents/maya/scripts/aor C:/Users/John/Documents/maya/scripts/comet C:/Users/John/Documents/maya/scripts/dev C:/Users/John/Documents/maya/scripts/gnomonStudios C:/Users/John/Documents/maya/scripts/jasonSchleifer C:/Users/John/Documents/maya/scripts/jp C:/Users/John/Documents/maya/scripts/kevinPoly C:/Users/John/Documents/maya/scripts/maya C:/Users/John/Documents/maya/scripts/stopStarring C:/Users/John/Documents/maya/scripts/toolsGeneral C:/Users/John/Documents/maya/scripts/toolsRigging C:/Users/John/Documents/maya/scripts/toolsScripting C:/Users/John/Documents/maya/scripts/toolsTexture After this, I try to import pymel.core, and get this error: # Error: If you manually installed pymel, ensure that pymel comes before Maya's site-packages directory on PYTHONPATH / sys.path. See pymel docs for more info. The docs recommend adding this top-level directory to the path, but I also tried individually adding the pymel and maya subdirectories to sys.path with the same result. If anyone has any thoughts as to what's happening here, I'm all ears! Thanks all! -JP On Dec 28 2009, 4:04 am, Miguel González Viñé <lichi...@gmail.com> wrote: > Thanks for the explanation, Chad. > I was following the tutorial and I was totally confused. There's a few > examples like: > cam = ls(type='camera')[0] > parent = cam.getParent() > trans = parent.getTranslation() # <--- > trans > # Result: dt.Vector([28.0, 21.0, 28.0]) > > where I was trying to get dt.Vector and I was thinking there was a > problem in my installation or something wrong. > > Thanks again, > miguel. > > On Sun, Dec 27, 2009 at 7:41 PM, Chad Dombrova <chad...@gmail.com> wrote: > > > sphere1, hist = polySphere(name='mySphere') > > grp = group(sphere1) > > sphere1 > > # Result: group1|mySphere # > > > nothing has changed in his regard. from the beginning, autodesk chose to > > deviate from standard python practice of using repr() to display results, > > instead they use str(). this inevitably leads to confusion. here's how you > > can get what you expect: > > print repr(sphere1) > > > this prints: > > nt.Transform(u'group1|mySphere') > > here's a shorthand for the same thing: > > print `sphere1` > > i need to clarify this in the tutorial. > > -chad > > > -- > >http://groups.google.com/group/python_inside_maya > > -- http://groups.google.com/group/python_inside_maya