Can you only Show/Hide by id?


I am using my model to display hide floors, I have grouped and named them, First Floor, Second Floor etc.

On the example for show hide (Viewer API - Examples - Sketchfab) this uses an ID rather than a name, are you only able to hide/show via an ID? and also how do we get the ID of an object once uploaded in SketchFab.

Many thanks for any help.

You can only control object visibility with the instance id. You get these id’s by requesting the nodemap after the scene has loaded. You then search that nodemap for the object by name and get its id.
Here’s an example:


Many thanks Klass for responding to my question. I will look at the example.

1 Like