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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

M_shah
10-Marble

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

Announcements

Top Tags