BlenderProc
BlenderProc copied to clipboard
[FEATURE]: Allow BlenderProc to be used as a Python package
Is your feature request related to a problem? Please describe. Right now BlenderProc seems to be usable only as a stand alone program and not as a Python package. Additionally, a Blender installation is required.
Describe the solution you'd like
Given a Python script my_script.py
like so:
from blenderproc.python.utility import Initializer
from blenderproc.api import renderer
Initializer.init(clean_up_scene=False)
renderer.render(verbose=True)
I would like to be able to run it using python my_script.py
.
Describe alternatives you've considered
I've largely achieved this by simply commenting everything in BlenderProc/blenderproc/__init__.py
and installing BPY using pip install bpy
. This is just a hack of course and no real solution.
Additional context As BlenderProc allows for a much more intuitive interaction with the Blender Python API compared to directly using BPY (comparable to, but much more extensive than, EasyBPY), I believe this to be a nice feature, e.g. for visualization callbacks in training pipelines.