Solved
Controlling Model Item Opacity Using Toggle Button
- March 12, 2018
- 1 reply
- 8377 views
you can use this script to change the opacity of your model.
$scope.opp=function(val) {
switch(val) {
case 1:
$scope.view.wdg['model-1'].opacity= 0;
break;
case 2:
$scope.view.wdg['model-1'].opacity= 1;
break;
}
};
you can call
opp(1); into key pressend of toggle button
and
opp(0); into key unpressed of toggle button.
bye
Giuseppe
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.