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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

3D image visible and hide

ccss1
6-Contributor

3D image visible and hide

Click the button once to visible the 3D image and click again to hide.
How can I implement it with Vufortia?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @ccss1 ,

 

with javaScript using a global variable this is easy to implement.

The variable should save the status of the current display. 

Another option is to check simple the visibiltiy of the 3D Image

Example it could be something like :

$scope.MybuttonClickEvent = function()
{
if ($scope.view.wdg['3DImage-1']['visible'] == true)
$scope.view.wdg['3DImage-1']['visible'] = false;
else
$scope.view.wdg['3DImage-1']['visible'] = true;

}

 

View solution in original post

1 REPLY 1

Hi @ccss1 ,

 

with javaScript using a global variable this is easy to implement.

The variable should save the status of the current display. 

Another option is to check simple the visibiltiy of the 3D Image

Example it could be something like :

$scope.MybuttonClickEvent = function()
{
if ($scope.view.wdg['3DImage-1']['visible'] == true)
$scope.view.wdg['3DImage-1']['visible'] = false;
else
$scope.view.wdg['3DImage-1']['visible'] = true;

}

 

Top Tags