Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Cannot run render_images.py on Blender 2.81 #23

Open
TommasoBendinelli opened this issue Dec 8, 2019 · 11 comments
Open

Cannot run render_images.py on Blender 2.81 #23

TommasoBendinelli opened this issue Dec 8, 2019 · 11 comments

Comments

@TommasoBendinelli
Copy link

With Blender 2.81, on macOS Mojave I get the following error when I run
blender --background --python render_images.py -- --num_images 10

Blender 2.81 (sub 16) (hash f1aa4d18d49d built 2019-12-04 14:33:18)
found bundled python: /Applications/Blender.app/Contents/Resources/2.81/python
Read blend: data/base_scene.blend
Traceback (most recent call last):
File "/Users/tommaso/CSEM_repos/clevr-dataset-gen/image_generation/render_images.py", line 568, in
main(args)
File "/Users/tommaso/CSEM_repos/clevr-dataset-gen/image_generation/render_images.py", line 187, in main
output_blendfile=blend_path,
File "/Users/tommaso/CSEM_repos/clevr-dataset-gen/image_generation/render_images.py", line 264, in render_scene
bpy.ops.mesh.primitive_plane_add(radius=5)
File "/Applications/Blender.app/Contents/Resources/2.81/scripts/modules/bpy/ops.py", line 201, in call
ret = op_call(self.idname_py(), None, kw)
TypeError: Converting py args to operator properties: : keyword "radius" unrecognized

Blender quit

@TommasoBendinelli TommasoBendinelli changed the title Cannot run render_images.py Cannot run render_images.py on Blender 2.81 Dec 8, 2019
@oaishi
Copy link

oaishi commented Feb 21, 2020

I ran through the same issue too, Blender 2.81 changed few configurations, the best is to use Blender 2.78c as the authors did.

@guicho271828
Copy link

You can use these commits
IBM/photorealistic-blocksworld@b6a5ced
IBM/photorealistic-blocksworld@7816279
IBM/photorealistic-blocksworld@e930ff0
IBM/photorealistic-blocksworld@3908f36

@maskaravivek
Copy link

Thanks @guicho271828 for sharing the fixes. As some of the newer graphic cards are not supported by older version of blender, this fix is quite helpful.

@andrecavalcante
Copy link

The fixes above work but then a I get a new error:

old_use_antialiasing = render_args.use_antialiasing
AttributeError: 'RenderSettings' object has no attribute 'use_antialiasing'

@guicho271828
Copy link

probably a new change in blender. Which version is it?

@andrecavalcante
Copy link

andrecavalcante commented Aug 11, 2021

probably a new change in blender. Which version is it?

2.93.2 and 2.81a

@guicho271828
Copy link

@guicho271828
Copy link

no, actually 2.92

@guicho271828
Copy link

actually 2.93.3 also worked after I fixed the url.

@aOlmo
Copy link

aOlmo commented Oct 7, 2021

Removing radius=5 did it for me

@jackyzyb
Copy link

jackyzyb commented Jan 14, 2022

The fixes above work but then a I get a new error:

old_use_antialiasing = render_args.use_antialiasing AttributeError: 'RenderSettings' object has no attribute 'use_antialiasing'

Same here. I try to use Blender 2.8 and 2.9 and this issue always exists. Have you already found the solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants