ajhamdi / MVTN

pytorch implementation of the ICCV'21 paper "MVTN: Multi-View Transformation Network for 3D Shape Recognition"
98 stars 9 forks source link

Update blender_simplify to Blender 2.8 API #4

Closed wlcosta closed 2 years ago

wlcosta commented 2 years ago

Using the current code on Blender 2.8 yields the following error:

bpy.data.objects['Camera'].select = True
AttributeError: 'Object' object has no attribute 'select'

According to API changes in Blender 2.8:

In 2.7x, you could directly (de)select an Object from its select property. This has been removed in 2.8x, in favor of some get/set functions.

Therefore, we need to change this piece of code to allow for direct usage on Blender 2.8, which is now the default for installation.