add to environment variable PYTHONPATH
The documentation for Maya explains how to get PyMel working with Eclipse. Use the “Predefined” option in Pydev preferences. It requires a directory with files with a .pypredef extension. However, using this method only allows for autocompletion of commands – there are no documentation hints available using these files. Read the next section for an alternate option.
1. In Eclipse, go to “Windows/Preferences/Pydev/Interpreter – Python”
2. Click on the third tab called “Predefined”
3. Click on “New” and navigate to the pymel “pypredef” directory
4. Click “Apply”
You might have to “refresh” your project to enable the changes or at worst restart Eclipse.
If pymel and mayapythonAPI are both installed, document of mayapythonAPI may not show because of conflict, remove the pymel in the predefined