I wrote a small script to generate .pypredef files for the Blender Game Engine. This gives you code completion for the bge and mathutils modules within Eclipse.
Here are the API declarations for Blender 2.55:
To get started with this:
- Install Eclipse.
- Install Pydev inside Eclipse. It’s probably best to use the update manager.
- Add the directory containing the pypredef files to the Predefined Completions section of the Pydev configuration.
Attached is the file used to generate the declarations (in case the API changes). Documentation is contained in the file. Just make sure you know what the current working directory is when you run Blender, as the .pypredef files will be written there. The easiest way to ensure you know which directory you’re in is to start Blender from the command line.
Edit: You need to import your modules like this to get it to work:
from bge import logic
generateBgeApi.blend (78.8 KB)