Skip to main content
1-Visitor
July 11, 2018
Question

How to use button/image widget to select and play particular model from multiple models?

  • July 11, 2018
  • 1 reply
  • 1161 views

I have multiple of models uploaded in studio 3D canvas and in 2D canvas i have particular button/image widget for particular model ...When i am pressing button that particular model will be visible and play the sequence and other models are hidden 

1 reply

21-Topaz I
July 25, 2018

You can bind the button click event to the 'play all' service for model you want to view. You can also call a JS function on the same click even to hide the other models from the canvas. For example, if I wanted to hide model-2 on the click event, I would add this code to my home.js file:

 

$scope.hideModel2 = function() {
 $scope.view.wdg['model-2']['visible']=false;
};

Then, on the click event, add 'hideModel2():'.