Guide - Eclipse Set Up & Compiling your own programs From Python Code(64 & 32 bit)

I just finished this write up:
Eclipse IDE Set Up

I recently had to go through this at work, switching to Win 7 64 bit. I am quite stoked with what I have now though, but getting there took lots of talking to the oracle of our time (Google) so I decided to spare other people from having to go through the same thing.

Hopefully this helps someone.
/Christian Akesson

This is great. Lot’s of time spared. Thanks

Edit: I can’t find the sip.pyd that I have to replace. Any idae what I have could done wrong?

Good to hear it will save you some time. :):

It’s the one on Nathan’s page (go to the top of the page below.)
http://nathanhorne.com/?p=204&cpage=1#comment-1978
This for 64 bit…

/Christian

P.S Or do you mean it’s not there to begin with…? D.S
If that is the case, make sure that you installed the Maya compiled version of pyQt straight to the Maya Program folder/Python/. It will detect an installed version of PyQt (the external to Maya Python one) and prompt for an uninstall (just ignore that and continue, pointing the installer to said place). If you did that, and the sip.pyd is still not there and you se a PyQt4 folder in Maya/Python/Lib/site-packages, just put that file in the site-packages folder and you should be good to go.

ow srry my fault. I said it wrong. I just didnt found the file that I had to replace. But now I found out that I am stupid and I have to use the searchfunction in windows :smiley:

awesome!!
thanks for the time and effort of putting it online.

I’ve setup myself a half baked eclipse environment at home but it’s not really done as properly as you did. thanks again.

thanks, i’m with greuh, i had muddled some of it together previously, but it was extra complicated heh! the writeup helps a ton.

Cool, glad to hear it guys.:):

/Christian

Great help with the setup but…
The question I have with Eclipse is if I do the following:

import pymel.core as pmc
cam = pmc.camera() # create a new camera

Now if I type:

cam.set …(and hit ctrl-space, should I be getting autocompletion on the object methods? because I am not and I don’t know if I should be… it would be very useful)

if I do its only the ones it knows I have already used within the script already.

rhexter,

Try capital ‘C’ for camera, must import pymel.all

import pymel.all as pma
cam = pma.Camera()

Now ‘cam’ object will auto-complete w/ all methods

Excellent thank you very much.

So getting this straight, that instantiates a new object of the class of the type “Camera” and then this gives access to all the methods within that class for that new object, thus eclipse imports the completion data and makes it available.

I guess something that I was not sure about was the,

import pymel.all as pma

This seems to be a heavy handed with filling the named namespace with everything.
Kinda feels excessive. Should I worry about stuff like that, I know I’ve read that pymel is handling everything so that theres no clashes but still feels kinda dirty as its possible to accidentally rename objects accidentally… which is also something they warn about?

thanks again

I always import all, have no problems. Someday, I will start to optimize and just import core when I can.

Updated the Eclipse IDE Set Up with Real Time debugging set up, trouble shooting and a few other missing tidbits…

/Christian

Thanks for the Guide. Thumbs up!

I’m having an issue setting up Eclipse. I can get the camera example to work, but if I try, for example:

import pymel.core as pmc
pmc.p

I should be getting some autocomplete suggestions for, if nothing else, the poly creation functions( objects? new to pyMel )

if I type out ‘pmc.polySphere( )’ and run it from the editor, it works fine, but the autocomplete isn’t showing up.

I didn’t add the extras/completion/py, but that’s because I couldn’t find the thing. any ideas why I wouldn’t have it?

-t

You have to have that ‘completion’ dir inserted into your Python path according to the instructions to get completion. The shipped version of pymel w/ Maya does not have the extras folder.

You can get the full pymel download here: Google Code Archive - Long-term storage for Google Code Project Hosting.

thanks :3

Have anyone found out a way to solve the high CPU usage of the Eclipse plugin?

Opening the jar up there doesn’t seem to be a way to edit the .class (never done much in Java myself).

I’ve also tried contact rbublitz but haven’t got an answer yet.

I could easily live without the results of Maya console inside Eclipse, which seems to be causing the problem…

I’ve tried using eclipse for Android development, but in the end couldn’t. Every time i used its intellisense, the IDe more or less froze for 20 seconds. So maybe its something overall with eclipse that it can eat CPU now and then?

to run the android development in eclipse first run a sample android application starting the android virtual device. And then don’t close the AVD then develop some application run the application it will not consume more CPU usage. It will run quickly.

Cegonsoft Corporate Training

I should be worried about something like that, I know I’ve read, pymel deal with all that theres no conflict, but still feel a little dirty, because it may accidentally rename the object accidents.