Question
For Loop is not working
I have added three models widgets & changed the studio-id as frame, cab & tires. I also added a button with a function name as hideModels(). I tried to hide all the models at once by clicking the button. I used for loop in the code as attached here. But it didn't work. I hope the syntax is correct. The error is visible property is not defined. What can I do to loop all the models to hide.
$scope.hideModels = function(){
var models = ["frame","tires","cab"];
for (i = 0 ; i <= models.length ; i++){
$scope.app.view.Main.wdg[models[i]].visible = false;
}
}
Thanks!!

