Blenderproc: python script failed

Created on 15 Apr 2021  路  6Comments  路  Source: DLR-RM/BlenderProc

Dear Authors,

i just tried the debug python code, but i got some error, how can i fix this?

thank you
Screenshot from 2021-04-15 15-44-48

question first answer provided

Most helpful comment

  1. You can execute a custom config with arguments. You just need to adjust line 30 and 31 of debug.py
  2. The blue playhead should be in the bottom of the layout tab. See here: https://docs.blender.org/manual/en/latest/editors/timeline.html

All 6 comments

You are probably using the wrong blender installation. You need to use the same as it is used when running BlenderProc via python run.py .... Per default it should be at /home/<USER>/blender/blender/blender-2.92.0-linux64/blender.

@cornerfarmer thank you, it worked for me. i was trying the other version before.

Can i use the debug feature to know the camera locations before inputting the camera locations in the config file.
for example:"location": {
"provider":"sampler.Uniform3d",
"max":[10, 10, 8],
"min":[-10, -10, 12]
I want to know how to get the location of camera, if i have a camera path in mind(ex: move camera around an object)

I don't know, if I fully understood your problem. If you just want to inspect the final camera poses that are later used for rendering, you can simply do that by switching from the Scripting tab back to the Layout tab in blender, click on the camera and then you should see the keyframes in the bottom of the window (the timeline area). By moving the blue playhead you can switch between the frames and inspect the camera poses used there.

Does this answer your question?

@cornerfarmer i use the command line to run the code as per the documentation.

  1. How can i run code inside blender using scripting tab, i believe i cannot enter the arguments.
  2. checking the blue playhead is in the layout tab or the render tab?
  1. You can execute a custom config with arguments. You just need to adjust line 30 and 31 of debug.py
  2. The blue playhead should be in the bottom of the layout tab. See here: https://docs.blender.org/manual/en/latest/editors/timeline.html

@cornerfarmer thank you for your support

Was this page helpful?
0 / 5 - 0 ratings