Can a runtime created by the Blender Game Engine run any Python script made for Blender?
Like, can an exe run a export script (OBJ, LWO…) ?
no
What´s the limitation? Modules? Where is the line drawn of what can and what can´t run?
the blender module is not part of gameblender
it is [and never was and I’d hope never will be] be part of the standalone player or web plugin
also, like in blender, you need full python instal for several python modules
to repeat, gameblender has:
gamekeys
rasterizer
gamelogic
modules, and some standard python ones (math, sys…)
[ignore my case errors in module names]
why would you like to run blender scripts in gameblender anyway?
simple answer from me at the very least. More power to create interactivety the better. Games are great but if you can make little programs inside of the game and have output and other stuff that would be great for the user.
I agree. This would be a very nice addon. Not to disagree with any of the Game Engine experts here, but I think I have seen this done. I might have been a few years ago back when 2.25 first came out but I THINK I saw postings in this forum of someone that used both GameEngine python and regular blender python.
I agree. This would be a very nice addon. Not to disagree with any of the Game Engine experts here, but I think I have seen this done. I might have been a few years ago back when 2.25 first came out but I THINK I saw postings in this forum of someone that used both GameEngine python and regular blender python.[/quote]
Several people have done it, but it only works when playing the game in Blender, not as an executable game or in the web plugin.
A friend of mine has a project for X-Ray image simulation which includes a program in C that kicks in after the user selects a perspective of a mesh in Blender (still in concept phase).
A Blender “game” would allow the user to rotate the mesh to the desired angle and then the exporter would generate a file for the C program with the visible vertices. — Could an exporter take into acount the camera angle of view for the exported mesh?
But the solution Wiseman pointed out seems to be OK. Make the project as a Blender game but run it inside Blender (as a autostart scene) to have full logic control.
The advantage of running this as a exe outside of Blender would be to ease even more the process to users not so Blender savvy.