Alternate for if-else statement
Hi,
In an experience I've 20 3D labels visibility to control on each step(total steps 7).
Hi,
In an experience I've 20 3D labels visibility to control on each step(total steps 7).
Hi
So basically what i mean is, you can define a function like below:
$scope.hide = function(){
$scope.view.wdg['3DLabel-1']['visible'] = false;
$scope.view.wdg['3DLabel-2']['visible'] = false;
$scope.view.wdg['3DLabel-3']['visible'] = false;
$scope.view.wdg['3DLabel-4']['visible'] = false;
}
$scope.playStep = function () {
let stepnr = $scope.view.wdg['model-1']['currentStep']
switch (stepnr) {
case 1:
{
$scope.hide();
$scope.view.wdg['3DLabel-2'].visible=true;
$scope.view.wdg['3DLabel-3'].visible=true;
}
break;
case 2:
{
$scope.hide();
$scope.view.wdg['3DLabel-4'].visible=true;
}
break;
}}

Let me know if this works for you
Thanks
BR,
Mohit
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.