-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update blenderproc to accommodate blender's introduction as a python module #840
Comments
Hey @aviveh21, I have also seen this nice new feature, however we cannot really use this at the moment due to multiple reasons:
|
Hey @cornerfarmer I am also interested in the possibility to run blenderproc from a usual python environment, and would like to support @aviveh21 suggestion. Allow me to address your points of objections:
That is reflected in the blenderproc code, which consists of its core (lets call it 3D) part, and the blender-through-OS- communication part. Currently there are quite separated, but not completely. From the initial analysis it seems feasible to make a compete separation of the 3D part, so it can be used in two modes:
Please let me know what you think about that. |
Okay, I will keep this thread here open. I see that this could be beneficial, although its gonna be quite a bit work and its not 100% clear that everything will work as expected. |
Good idea! would you share how to tweak blenderproc so that it would work well in my own python environment? |
Of course. Then, do this steps:
Lastly - you need to make sure you included your new env variable in the environment you are working on, and gave it a value. Of course this is just a tweak. I do not guarantee that the code will be correct in all cases. It currently works well in the cases I tested. The code I included in the __ init __.py file: |
Hi,
I noticed that blender in version 3.4 has updated to be provided as a python module (bpy)
This means that we can use our own python environment instead of the blender python environment, and use blender as python module as all modules in python.
This is a huge improvement since we can now use our own python modules and python environment ( without using addons) and debug in our specific development environment. ( without using pycharm professional for example)
I used the blenderproc package and tweaked it a bit so I can use my own python environment with the bpy package to render images, instead of running blender as an executable as it is now, and it worked great.
Do you plan to upgrade blenderproc for this change? A lot of your pipeline is around that constraint of blender's python environment, so you can safely remove some setup stages.
The text was updated successfully, but these errors were encountered: