Hiding Object from html

This part of the API isn’t yet official, but you achieve this with:

for (const node of viewer.findNodesOfType('<OBJECT TYPE NAME>')) {
  node.hide();  // node.show();
}

The nodes intended to be dynamically hidden/shown must be marked as editable using the Viewer.setNodeTypeEditable('<OBJECT TYPE NAME>') function before the scene is loaded.

2 Likes