how to install and configure Eclipse as a Maya IDE on linux

Posted: April 16, 2013 in FX Pipeline, Linux, Maya

eclipse for maya

Install and configure Eclipse as a Maya IDE on linux

Operating system : CentOS 6.4 64bit
Software: Maya 2012 64bit
Eclipse : eclipse-SDK-4.2.2-linux-gtk-x86_64.tar.gz
Python : 2.6

download and extract Eclipse Classic 4.2.2 from http://www.eclipse.org/downloads/

Relocate Eclipse

mv /tpm/eclipse /opt

Create a Symlink
ln -s /opt/eclipse/eclipse /usr/bin/eclipse

After you can Start Eclipse from Terminal simply with:

eclipse

 

click on eclipse executable file and application will run.

(make sure in the permissions tab of eclipse Execute cliked to allow execute file as program)

 

 

 

Install pydev

In Eclipse, go to the Help – Install New Software – click on Add

eclipse_for_maya_2

in add repository window copy following
Name : pydev
Location: http://pydev.org/updates

Hit OK.

In next window just select pydev.

eclipse_for_maya_3

after installation restart the application

Install maya editor for eclipse

Download from :- http://www.creativecrash.com/maya/downloads/applications/syntax-scripting/c/eclipse-maya-editor

Setup:

1. Unzip the dowloaded file in a temp directory

2. In Eclipse, go to the Help/Install New Software page. Click on “Add” and then “Local” and navigate to the temp directory where the org.eclipse.eclipseMayaEditorProject is

3. In the “Name” section, make sure “Uncategorized” is selected and then click “Next”

4. Allow Eclipse to relaunch and once it’s back, the EclipseMaya toolbar should be visible

5. In Maya, create a new shelf button with the following code or put it in the Startup script
import maya.cmds as cmds

if cmds.commandPort(‘:7720′, q=True) !=1:

cmds.commandPort(n=’:7720′, eo = False, nr = True)
Port Number – By default, the port number has been set to 7720. It can be changed at any time. Remember to press the “Reconnect Eclipse to Maya” button. This is handy if you have more than one instance of Maya open at once.

eclipse_for_maya_4
Configure Python in Eclipse
In Eclipse, go to Windows – Preferences – Pydev – Interpreter-Python

click on New

Interpreter Name : python2.6
Interpreter Executable : /usr/bin/python2.6

eclipse_for_maya_5
Restart application.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s