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

RuntimeError: Error: No valid selected objects #309

Open
DreamerYinYu opened this issue Sep 3, 2024 · 4 comments
Open

RuntimeError: Error: No valid selected objects #309

DreamerYinYu opened this issue Sep 3, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@DreamerYinYu
Copy link

Hello, I encountered an error while executing the following command:
python -m infinigen.tools.export --input_folder outputs/scene_14_sunder_water/0/fine --output_folder outputs/my_SceneExport -f usdc -r 1024

report errors:
RuntimeError: Error: No valid selected objects
In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7ff3e4bd9f30>)

How can I solve it? thank you

@DreamerYinYu DreamerYinYu added the bug Something isn't working label Sep 3, 2024
@GCChen97
Copy link
Contributor

GCChen97 commented Sep 3, 2024

The errors came from which lines of the code?

@DreamerYinYu
Copy link
Author

//Crashed: 09/03 04:26PM outputs/ExportTest_01/0/logs/export.err reason='Error: Evaluated geometry from modifier does not contain a mesh,Error: Evaluated geometry from modifier does not contain a mesh,Error: No valid selected objects,RuntimeError: Error: No valid selected objects' node=None fatal=True

@txOdyssey
Copy link

same issue when exporting a nature scene to .fbx file.

python -m infinigen.tools.export --input_folder outputs/river/0/fine --output_folder outputs/export_river -f fbx -r 1024

report like this:

Error: No valid selected objects
Traceback (most recent call last):
  File "/opt/conda/envs/infinigen/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/envs/infinigen/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 1037, in <module>
    main(args)
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 993, in main
    folder = export_scene(
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 767, in export_scene
    export_curr_scene(folder, **kwargs)
  File "/opt/conda/envs/infinigen/lib/python3.10/site-packages/gin/config.py", line 1605, in gin_wrapper
    utils.augment_exception_message_and_reraise(e, err_str)
  File "/opt/conda/envs/infinigen/lib/python3.10/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise
    raise proxy.with_traceback(exception.__traceback__) from None
  File "/opt/conda/envs/infinigen/lib/python3.10/site-packages/gin/config.py", line 1582, in gin_wrapper
    return fn(*new_args, **new_kwargs)
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 920, in export_curr_scene
    bake_scene(
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 695, in bake_scene
    bake_object(obj, folderPath, image_res, export_usd)
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 667, in bake_object
    bake_pass(obj, dest, img_size, bake_type, export_usd)
  File "/media/diskd/code/infinigen/infinigen/tools/export.py", line 472, in bake_pass
    bpy.ops.object.bake(
  File "/opt/conda/envs/infinigen/lib/python3.10/site-packages/bpy/3.6/scripts/modules/bpy/ops.py", line 113, in __call__
    ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: No valid selected objects

  In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f01481f27a0>)

@zoctipus
Copy link

zoctipus commented Sep 7, 2024

same issue exporting to usdc or with --omniverse arguments

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

5 participants