Hey did all that was outlined in James' post on making code completion work in Eclipse but am not getting the code completion one would expect.
I am in OS X so had to make an alias to mayapy, as it lives in the Maya.app package which of course Eclipse couldn't see into when loading Python interpreters, but everything seemed to load. Just no completion.
I'm fairly new to scripting in maya. Am I right to assume that there is no way to run scripts through a debugger? I can't quite get my head around how to debug through eclipse's debugger, since so much of the function of a script depends on actions that happen in maya. What do people generally do when developing for maya -- lots and lots of print statements and breaks? Even entering a script line by line doesn't work so well when you are used to writing everything into functions...
j
i have code completion working on osx.
under "interperter - python", i clicked New.
then i pressed APPLE-SHIFT-G, to open up a window that allows you to type in a directory (this shortcut can be used in any finder or file dialog in osx). for some reason i could not paste a path as normal, so i had to manually type in the full path to the bin dir
/Applications/Autodesk/maya8.5/Maya.app/Contents/bin
then i selected mayapy and hit Open.
after doing all this it gives you an option of which dirs and files to add and i just used the defaults.
at one point i noticed that autocompletion wasn't working so i just opened up the preferences again, went to Python Interpreters and hit the Apply button and it reparsed all the directories. after that it worked again.
hope this helps.
-chad
jimmy you said :
Hey did all that was outlined in James' post on making code completion work in Eclipse but am not getting the code completion one would expect.
Where is that James topic i would love to read it
thanks
QUOTE(pythonBoy @ 01/18/08, 12:21 PM) [snapback]279803[/snapback]
jimmy you said :
Hey did all that was outlined in James' post on making code completion work in Eclipse but am not getting the code completion one would expect.
Where is that James topic i would love to read it
thanks
Here you go:
http://www.highend3d.com/boards/index.php?...&hl=eclipse
Thanks for the thoughts -- so not sure what it is I'm doing, but still can't get code completion working and can't run:
import maya.standalone
maya.standalone.initialize()
import maya.cmds as ms
ms.polyCube()
ImportError: No module named maya.standalone
Did everything as you suggested (if you right click in the dialog box you can paste the path, btw) and linked all default libraries... Even did James' point of forcing a Maya builtin.
Very weird. Added the maya libraries to PYTHONPATH in shell envs. Totally out of ideas -- I'm obviously doing something wrong - I supposed I could wipe Eclipse and try again. Pain in the butt -- would be great at least to have code completion, if not testing from launch in eclipse...
j
QUOTE(jimmyt @ 01/28/08, 06:06 PM) [snapback]280276[/snapback]
Here you go:
http://www.highend3d.com/boards/index.php?...&hl=eclipse
Followed original instructions. Tried everything else that others suggested and I get NO auto-completion.