Search Results

Saturday, April 23, 2011

External Modules and the BGE

Hey. So, as you may or may not know, I've been making some external modules for use with the Blender Game Engine. Here, I show how one can easily work these modules into all of their projects easily.

The local Python distribution included with Blender allows for Blender to search for scripts in a series of directories - this is stored in the sys module's path variable. By default (on Windows), there is an entry in the Blender executable directory, which means that if you put external modules like mine in the Blender directory, you'll be able to import any external module you need from any project that you have. Once you've exported the game to a standalone game, just include the scripts in the game's directory. You can read up a bit more on this here.

No comments:

Post a Comment