![how to import blender to java lwjgl how to import blender to java lwjgl](https://lh6.googleusercontent.com/-9Tq7ie50LjQ/VP8HS1W3BzI/AAAAAAAABH0/Ujixo9VtCnY/w1038-h586-no/BlenderWithBDX.png)
The Blender instance will close automatically after it’s finished with rendering, so a separate instance will be launched for each blend file. If you send it a blend file, the server-application will launch an instance of Blender (in command-line mode), feed it the blend file and then retrieve the created image file. If it works in a normal Python script, it should work in a Blender script.Ĭould i run a python script as a server (endless-loop) to wait for (local) connections (for generating pics by client requests), so that blender would ‘never’ been shut down ?įor this I think it might be best to write a separate application (Python script or a “real” program in C++ or so) to handle all the networking and socket business. I don’t know how sockets work in Python, but I doubt Blender has much to do with it. (If you program your script really well and it doesn’t gorge on your memory you should be ok… but be carefull) (I think you can do that yes… but am not entirely sure) (no idea what jre does with java, but blender is pretty “quiet” and you can of course “only open a script window”) (though what you’d do with the results I dunno) Also you can make your default blender file into the scene you need… then just adapt it for that static image you need) (But you can use the python api to pre define pretty much everything. You can not work in blender files without blender… unless you write a program that understands them and does everything. (you can run python on it’s own… you can alter things in a blender scene with python inside blender. Thanks to the other guys for helping, still hoping for further answers. So i’m just answering and avoiding posting unnecesarry things like you do. When i’m helping programers or students on coding-forums, i never forgot that the most difficult thing is getting started and introducing to a technology - how easy it may be for me. …I really don’t need answers like this - can you say me what your problem is ? I’m researching/coding in a dozen different APIs and technologies see what’s the best to realize my project (i even wrote an own engine for realizing this purpose), i don’t need to tell you how much time it would cost to read 20 sites of introduction + coding samples for every technology/product/api…so why shouldn’t i ask on the forum when somebody can answer this in a minute ? by getting the package I know what python is and… You can build you own program only in python.
![how to import blender to java lwjgl how to import blender to java lwjgl](https://i.ytimg.com/vi/L90nX0NfFl4/maxresdefault.jpg)
You don’t need Blender to work with python.
![how to import blender to java lwjgl how to import blender to java lwjgl](https://i.imgur.com/4Mi0kBG.png)
To all your previous question I’ll answer once. If i can use sockets and Blender has to run in background - could i run a python script as a server (endless-loop) to wait for (local) connections (for generating pics by client requests), so that blender would ‘never’ been shut down ?.Can i use sockets in the python scripts, if the versions of blender/python fit together ?.
![how to import blender to java lwjgl how to import blender to java lwjgl](https://i.stack.imgur.com/9XP1j.jpg)
like the jre does with java class files ? If its necesarry to run Blender in background to run Python scripts - can i do that “quietly” in the background, i.e.Can i thing of blender/python as a normal 3d api - for using it ONLY for programming purposes without working on blender-projects in the blender-GUI ?.just like i would do with a java 3d engine api (code and run) ? Can i generate a static 3D picture with Python using all Blender 3d features without having to define the used world/objects/scenes/textures/ etc… in a blender-project before, i.e.Can i use the Blender Python-API without running Blender in Background ?.Thankyou for the links, there were a little bit helpful, but maybe i’m to stupid: they didn’t answer my basic questions, i’ll try it this way (and i’ll add my other questions):