Skip to content
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

Exporting Error for individual export #271

Closed
lastbasket opened this issue Jul 4, 2024 · 1 comment
Closed

Exporting Error for individual export #271

lastbasket opened this issue Jul 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lastbasket
Copy link

Traceback (most recent call last):
File "/home/lastbasket/miniconda3/envs/infinigen/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/lastbasket/miniconda3/envs/infinigen/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/lastbasket/code/polar_dataset/infinigen/infinigen/tools/export.py", line 906, in
main(args)
File "/home/lastbasket/code/polar_dataset/infinigen/infinigen/tools/export.py", line 874, in main
subprocess.call(['zip', '-r', str(folder.with_suffix('.zip')), str(folder)])
AttributeError: 'NoneType' object has no attribute 'with_suffix'

It seems like the problem of the missing return of individual export of:

if individual_export:
bpy.ops.object.select_all(action='SELECT')
bpy.ops.object.location_clear() # send all objects to (0,0,0)
bpy.ops.object.select_all(action='DESELECT')
for obj in bpy.data.objects:
if obj.type != 'MESH' or obj.hide_render or len(obj.data.vertices) == 0 or obj not in list(bpy.context.view_layer.objects):
continue
export_subfolder = export_folder/obj.name
export_subfolder.mkdir(exist_ok=True)
export_file = export_subfolder/f'{obj.name}.{format}'
logging.info(f"Exporting file to {export_file=}")
obj.hide_viewport = False
obj.select_set(True)
run_blender_export(export_file, format, vertex_colors, individual_export)
obj.select_set(False)

@lastbasket lastbasket added the bug Something isn't working label Jul 4, 2024
@araistrick
Copy link
Contributor

Should be resolved by #280, please update to v1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants