Skip to content

Add visual handle rebuild hook#19

Merged
kevinzakka merged 1 commit into
mainfrom
rebuild-visual-handles
Apr 27, 2026
Merged

Add visual handle rebuild hook#19
kevinzakka merged 1 commit into
mainfrom
rebuild-visual-handles

Conversation

@kevinzakka

Copy link
Copy Markdown
Contributor

This adds a ViserMujocoScene.rebuild_visual_handles() method for cases where MuJoCo model fields that are baked into Viser handles change after scene construction. The method removes and recreates mesh, site, and convex hull handles, then reapplies visibility state. This lets callers update baked visual appearance or geometry fields, such as geom_rgba, without reaching into mjviser internals.

@kevinzakka kevinzakka merged commit 1bdfd6f into main Apr 27, 2026
7 checks passed
@kevinzakka kevinzakka deleted the rebuild-visual-handles branch April 27, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant