Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Autodesk Maya 2008 / Need some help with maya.standalone module for python
  RSS 2.0 ATOM  

Need some help with maya.standalone module for python
Rate this thread
 
16012
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 1
  • Joined: 26 September 2006 11:01 AM

Hello folks,

I’m having some problem with using maya.standalone module with python.
My environment is Maya2008 64bit on windows vista 64bit.
I got a copy of 64bit build of python which I believe I downloaded from python.org, but interpreter seems to be working quite alright.
So naturally, I thought it would work like it did on 32bit machine.

What I get in my attempt is a blank error dialogue with “ok” and “cancel”.
When I hit OK, it takes me to tree view dialogue to select folder with no specific info.
And when I either select random folder or hit cancel, it would give me an alert dialogue with “Yes” and “No”.

following is example code that I tried.

import sys
import os
sys
.path.append'C:\\Program Files\\Autodesk\\Maya2008\\Python\\Lib\\site-packages' )
import maya.standalone
maya
.standalone.initializename='python' )
import maya.cmds as mc
mc
.polyCube()

any help would be appreciate it.
It may be the python interpreter being not compiled right, but hence there are seems to be no “official” 64bit python, if anyone can point me to some other build that works, that would be cool too.

Thanks



Replies: 0




   
  Settings Choose Theme color: