PeizhuoLi / neural-blend-shapes

An end-to-end library for automatic character rigging, skinning, and blend shapes generation, as well as a visualization tool [SIGGRAPH 2021]
Other
637 stars 92 forks source link

when I run the command 'blender ......',I got this #2

Closed Pean-Mura closed 3 years ago

Pean-Mura commented 3 years ago

Traceback (most recent call last): File "", line 1, in File "D:\360Downloads\neural_blend_shapes_main\blender_scripts\render_mesh.py", line 96, in batch_render(args.obj_path) File "D:\360Downloads\neural_blend_shapes_main\blender_scripts\render_mesh.py", line 56, in batch_render render_obj(os.path.join(dir, file)) File "D:\360Downloads\neural_blend_shapes_main\blender_scripts\render_mesh.py", line 33, in render_obj add_material_for_objs([obj], 'character') File "D:\360Downloads\neural_blend_shapes_main\blender_scripts\render_mesh.py", line 28, in add_material_for_objs raise Exception("This line shouldn't be reached") Exception: This line shouldn't be reached

I don't know why this happen. My command is ' blender -P render_mesh.py -b'

PeizhuoLi commented 3 years ago

Hi, this part of the code is used to add material to the generated mesh, where the material is stored in the blend file. You may discard this part, or please follow the readme and run blender ../eval_constant/simple_scene.blend -P render_mesh.py -b.