Re: [Maya-Python] Setup Environment for Python

2015-10-08 Thread tex1820
Really old thread but thanks Sudeepth! Was a big help still. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Tuan Nguyen
thank in advanced, Sudeepth XD On Tue, Dec 4, 2012 at 2:22 PM, Sudeepth Patinjarayil wrote: > Yea i also faced the same problem. i got it done by installing Maya and > Python 32-Bit version. if possible try to install 32-bit and try. if i get > any solution i will let you know. > > -- > view arc

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Sudeepth Patinjarayil
Yea i also faced the same problem. i got it done by installing Maya and Python 32-Bit version. if possible try to install 32-bit and try. if i get any solution i will let you know. -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://gro

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Tuan Nguyen
Thank Sudeepth I still get an error that its not valid win32 application. But look like we got the environment right, i will go around and find out about this :D On Tue, Dec 4, 2012 at 11:46 AM, Sudeepth Patinjarayil wrote: > Hi, > > The below code is for maya standalone to external python. This

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Sudeepth Patinjarayil
Hi, The below code is for maya standalone to external python. This is working for me on 2011 (32-bit) Maya. change the paths to 2012 and give a try # Maya Standalone to external python import os import sys ## #THESE ARE THE MI

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Tuan Nguyen
I think you right, anyway, thank for your help :D On Tue, Dec 4, 2012 at 2:44 AM, Justin Israel wrote: > I would say stick with mayapy unless you have a compelling reason to try > and set it up with a standard interpreter. Just add the maya/bin location > to your path. Then you have mayapy in yo

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Justin Israel
I would say stick with mayapy unless you have a compelling reason to try and set it up with a standard interpreter. Just add the maya/bin location to your path. Then you have mayapy in your command path. On Mon, Dec 3, 2012 at 11:37 AM, illunara wrote: > Sorry, i'm just a beginner to script so

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
Sorry, i'm just a beginner to script so alot of thing to learn, i'm only using mayapy to do stuff when don't want to open the whole scene up. On Tuesday, December 4, 2012 1:47:20 AM UTC+7, Justin Israel wrote: > > What is the "one line command"? Is mayapy on windows just a script you can > vi

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Justin Israel
What is the "one line command"? Is mayapy on windows just a script you can view? What I was suggesting is to view it and reference it to set up your environment variables properly. Once you do that, you should be able to start a normal python interpreter and do: import maya.standalone On Mon, D

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
I'm using Python 2.6 amd Maya 2012, both x64. What i did with window's environment variable is same with typing down sys.path.append, i just don't have to write it everytime start python. Maybe the directory is wrong? -- view archives: http://groups.google.com/group/python_inside_maya change yo

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
Yup, i can import maya standalone from mayapy, but i don't know how to use one line command, its kind of complicated and inconvenient for a beginner like me. Also, i try to run some test on PyQt too, so i try to use Python IDLE to script everything down. is this where the maya standalone's pack

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread Justin Israel
I am not sure where this is on windows, but for other systems there is a mayapy executable. On OSX it is just a bash script that sets the proper environment variables, and then calls the python that is bundled with maya. If you located this file, and it is indeed a .bat file or other script on wind

Re: [Maya-Python] Setup Environment for Python

2012-12-03 Thread ammu0608
Hi, For importing maya standalone, the python version and maya version should be the same. Try using sys.path.append and append your maya python path. I am not in front of the system. But please give a try. Thanks and Reagrds, Sudeepth Patinjarayi. On Dec 3, 2012 11:05 PM, "illunara" wrote: > He

[Maya-Python] Setup Environment for Python

2012-12-03 Thread illunara
Hello I follow some tutorial and setup env for Python by adding the pythonPath and mayaLocation in Environment Variables of Window PYTHONPATH C:\Program Files\Autodesk\Maya2012\Python\lib\site-packages\ MAYA_LOCATION C:\Program Files\Autodesk\Maya2012\ But when i run python and try to import may