How to stop the game simulation from a python script.

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
rraallvv
Posts: 0
Joined: Thu Apr 04, 2013 5:59 pm

How to stop the game simulation from a python script.

Post by rraallvv »

Hi guys!

I'm new to blender, I want to to automate exporting the .bullet file, but the only way that comes to my head is to run the simulation with a delay that in turn runs PhysicsConstraints.exportBulletFile, then stop the simulation pressing ESC.

I wonder whether there is a way to stop the simulation from the script, without having to press the ESC key.

Regards.

Post Reply