We are troubleshooting an issue impacting community login, and it may be intermittently unavailable. Sorry for any inconvenience.
I'm looking to be able to show a particular model and hide all others on the click of a particular 3D button.
On scene entry, I want a particular model (Model-1) to show and all others to be hidden, which I have done with the following code:
Hi,
you just need a function like this:
$scope.UpdateVisibility = function(widget, visibility) {
$scope.view.wdg[widget].visible = visibility;
}
Then enter in the JS box of the click event for button 1:
UpdateVisibility("model-1", true);
UpdateVisibility("model-2", false);
UpdateVisibility("model-3", false);
UpdateVisibility("model-4", false);
For button 2:
UpdateVisibility("model-1", false);
UpdateVisibility("model-2", true);
UpdateVisibility("model-3", false);
UpdateVisibility("model-4", false);
and so on.