Skip to content

Bug: Failure to load meshes using mujoco_importer.py due to failing conditional on line 767 #6

@SageMay

Description

@SageMay

Thank you for sharing this code, it's super useful. I used it on a different model and wanted to share an issue I encountered.

Description

Used mujoco_importer.py to import a MuJoCo xml to Blender. Armature loaded, but meshes didn't.

Steps to Reproduce

  1. My xml prescribed geometries like this: <geom name="mount_plate_001_mesh" type="mesh" material="color_11" mesh="mount_plate"/>
  2. Because a class wasn't prescribed, my geoms failed to load meshes. The failure point was line 767, the second half of an 'and' conditional. Specifically, my model returned False to the following: (geom_class == "visual" or geom_class == "visual_light" or geom_class == "visual_dark")
  3. I commented out this portion of the conditional. After that it worked perfectly!

Additional Information

I'm new to Blender and MuJoCo, so I don't have a suggestion for the best way to approach this, but want to alert you to the issue in generalizing across new models. Thank you again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions