I start from scratch a project and would like to use blender as the backend.
I start blender with --python-console --background and would like to open a new window with the 3D Viewport.
I did spend some time looking for resources / examples but without any good approach.
Do you know how to init a 3D Viewport, add it to the shell and make it visible?
Any help would be really appreciated.
--backgroundif you want to have the UI (see documentation for CLI flags)? What problem are you trying to solve with this? – Robert Gützkow Oct 23 '20 at 13:55--backgroundflag. You can however modify the UI through Python or perhaps create application templates. – Robert Gützkow Oct 23 '20 at 15:19--backgroundset Blender skips UI init steps and you can't trigger them from Python. Now based on your description, it seem like you want to do some form of interactive visualization for a web-app and intended to send the output of Blender's viewport to the client for this? In that case I think it's definitely not the right tool or approach for the job. Overall this sounds like a WebGL-based solution that renders on the client side would be better suited. If you just want to use Blender to render frames on command, then this can be done from Python without any UI. – Robert Gützkow Oct 23 '20 at 16:13--backgroundflag. If you are interested how Blender behaves differently when--backgroundis or isn't use, search the source code forG.background. – Robert Gützkow Oct 23 '20 at 16:31