Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello, I made a function that cuts my model based on the value of a slider, to obtain a dynamic section-like effect.
This model has some element which are glass-like (material wise) and when I apply the "cut" which is basicall a shader this "glass" becomes darker, more like plastic. I would like to know if there is a way to reset the model shader value to its default value.
The code for the section is the following:
Solved! Go to Solution.
Hello @FC_12202090,
please try to set it to '' or to 'Default'
in preview seems that all both worked
so example
$scope.unsetTest=function() {
$scope.view.wdg['model-1'].shader='Default';
//or
$scope.view.wdg['modelItem-1'].shader='';
$scope.view.wdg['modelItem-2'].shader=''
$scope.$applyAsync();
Hello @FC_12202090,
please try to set it to '' or to 'Default'
in preview seems that all both worked
so example
$scope.unsetTest=function() {
$scope.view.wdg['model-1'].shader='Default';
//or
$scope.view.wdg['modelItem-1'].shader='';
$scope.view.wdg['modelItem-2'].shader=''
$scope.$applyAsync();