Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4800840 By: kessaris
Hello, Since initiating the thread about maya python on PyDev, I have managed to get the Hello World program included by Alias to run from Eclipse using PyDev. These are the necessary steps: Following these steps will enable code to actually execute, BUT.. CODE COMPLETION DOES NOT WORK FOR MOST OF THE MODULES. # 1. ######## Installation Install PyDev (PyDev Extensions optionally) # 2. ######## Preferences In the Eclipse Preferences under PyDev Interpreter, Add the path to mayapy. In a default installation of maya on OS X, mayapy is located at: /Applications/Autodesk/maya2008/Maya.app/Contents/bin/mayapy One trick is to press SHIFT-COMMAND-G at the file browser and type this location in manually. It will resolve itself to the following path to python: /Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks/Python.framework/Ve rsions/Current/Resources/Python.app/Contents/MacOS/Python and add a bunch of directories to your system PYTHONPATH This is good. You will also need to include the following forced builtin libs: maya.OpenMaya maya.OpenMayaAnim maya.OpenMayaCloth maya.OpenMayaFX maya.OpenMayaMPx maya.OpenMayaRender maya.OpenMayaUI maya.standalone maya.app maya.cmds maya.mel # 3. ####### Python Run Configure a new Python Run configuration In Eclipse: Run->Open Run Dialog Add a new configuration under Python Run Under the Arguments tab: Base Directory: /Applications/Autodesk/maya2008/Maya.app/Contents/ Interpreter: /Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks/Python .framework/Versions/Current/Resources/Python.app/Contents/MacOS/Python Under the Environment tab: DYLD_FRAMEWORK_PATH=/Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks DYLD_LIBRARY_PATH=/Applications/Autodesk/maya2008/Maya.app/Contents/MacOS MAYA_LOCATION=/Applications/Autodesk/maya2008/Maya.app/Contents PYTHONHOME=/Applications/Autodesk/maya2008/Maya.app/Contents/Frameworks/Python.f ramework/Versions/Current ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users