Hello group,
I have this simple configurator that I am working on and for the most part, aside from the styling, I have the show/hide functionality working as expected. The problem I am running into is I cannot hide my model’s accessory nodes upon loading of the viewer.
Below is a code pen and the javascript I was attempting to utilize. Any help would be appreciated.
https://codepen.io/aestrada_salsbury/pen/KKxoJwX
client.addEventListener(‘viewerready’, function() {
var nodeId = ‘234’;
client.getApi(‘v1’).getNodeMap(function(err, nodes) {
if (err) { console.error(err); return; }
var node = nodes[nodeId];
if (node) {
node.visible = false;
}
});
});
}