I have a 3d Model(glb) which contains mesh names such as legs, cushions, back, supports, base.
I could see each mesh row’s object key which is called visible(boolean) and I could make them invisible while I load the model and add this model to the scene. I have direct access to the mesh in that model.
But inside the seen object as you can see I have children.children
How can I change each mesh visibility from scene object itself.
Basically I am trying to make some parts visible based on clicks on the button such as back, base, supports etc.
I am following this tutorial to learn ThreeJS
Kindly let me know If I am unable to express my problem.
By scene I mean the topmost scene, you still can call getObjectByName() on it and find the mesh even if it’s inside a scene inside a scene along with other meshes and lights.