Hide/Show multiple mesh object in the single glb #4168
Replies: 2 comments 4 replies
-
This is probably not the way its supposed to be done (sry Emmet), but I do it like this and it gets the job done :) hope it helps const mv = document.querySelector("model-viewer"); You should obviously change "PART_NAME" into the name of the part you want to hide. |
Beta Was this translation helpful? Give feedback.
-
We also have this same need. We'd like to use model-viewer to show individual parts of a parent gltf that contains many individual parts for a model directory. These glbs are used already in an A-Frame application and we filter part names from the parent glb using this component https://github.com/supermedium/superframe/tree/master/components/gltf-part Here's an example glitch of model-viewer where I tried the above using a model from an application. |
Beta Was this translation helpful? Give feedback.
-
I need to hide / show the mesh inside the single .glb
Upvc_Casement_Window_French_Out.glb this is the main file. inside this main file i have two mesh object
How to hide/show these meshes on click the button
Beta Was this translation helpful? Give feedback.
All reactions