cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

M_shah
7-Bedrock

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

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 1
tmccombie
21-Topaz I
(To:M_shah)

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():'.

Top Tags