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
- My xml prescribed geometries like this:
<geom name="mount_plate_001_mesh" type="mesh" material="color_11" mesh="mount_plate"/>
- 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")
- 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!
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.pyto import a MuJoCo xml to Blender. Armature loaded, but meshes didn't.Steps to Reproduce
<geom name="mount_plate_001_mesh" type="mesh" material="color_11" mesh="mount_plate"/>(geom_class == "visual" or geom_class == "visual_light" or geom_class == "visual_dark")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!