bullet exporter not available in Blender

Post Reply
iman
Posts: 2
Joined: Fri Apr 17, 2015 3:22 am

bullet exporter not available in Blender

Post by iman »

Hi
I am trying to export .bullet file from blender python console but it seems that the required module does not exist.
here is my code :

import PhysicsConstraints
Which raises an error saying module not found!

I check the blender documentation and it was using bge.constraints module however
I get the same error while writing import bge or import bge.constraints
so I am unable to write the second line of code to actually export the bullet file
bge.constraints.exportbulletfile(<filename>)

Can anybody help me?
I hava a Mac with OSX 10.9 Blender 2.71 and 2.60 were both checked but same error!
iman
Posts: 2
Joined: Fri Apr 17, 2015 3:22 am

Re: bullet exporter not available in Blender

Post by iman »

It seems that you can't run the scripts containing import bge from console or via run script,
the script should be ran from a game mode using a controller!
Hope this help someone else
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: bullet exporter not available in Blender

Post by Basroil »

Have you tried making sure that your code execution trust level isn't interfering with the module? Try seeing if allowing blender to run all code works.

Just remember that blender uses a subsample of the actual bullet physics engine (wrapped in C to make python module creation easier), and you'll always have better performance and control using the native code. For simple things it might be faster to code the c++ code yourself than figure out why blender can't do it :wink:
Post Reply