Sunday, April 26, 2009

Blender's GameLogic - Quick Comments

Several hours down the drain trying to find the connection between python scripting in Blender and the GameLogic module. Blender has two different python environments. There are python scripts that can be implemented via the command line and from the python scripts window. The GameLogic module is not visible from this environment. The other environment is inside of the game engine. Scripts are embedded in this environment through the 'buttons window' by attaching a script composed in the 'text window. Any python scripts intended for use in the game engine must be named in the Datablock name. Saving the file to disc does not matter. An example of everything setup and working:

No comments:

Post a Comment