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

Hide a model

Raphael08
5-Regular Member

Hide a model

Hello,

using Java to modify a Model ITEM is possible e.g. changing the color by using:

$scope.view.wdg['model-item1'].color = 'rgba(152,191,16, 1)'

Is it possible to change a COMPLETE model in the same way?

1 ACCEPTED SOLUTION

Accepted Solutions
mwassmann
5-Regular Member
(To:Raphael08)

The model widget does not have a color attribute.

You could create a model-item with component occurence id / 

this would create a model item on top level.

Another solution could be to use a shader - in a tml widget, however this is a bit tricky.

Martin

View solution in original post

3 REPLIES 3
mwassmann
5-Regular Member
(To:Raphael08)

The model widget does not have a color attribute.

You could create a model-item with component occurence id / 

this would create a model item on top level.

Another solution could be to use a shader - in a tml widget, however this is a bit tricky.

Martin

View solution in original post

Raphael08
5-Regular Member
(To:mwassmann)

Ok thanks.

Is there a possibility a "reset" the Color that has been set by Java without loading the experience new again?

$scope.view.wdg['modelItem-1'].color = 'rgba(152,191,16, 1)';

mwassmann
5-Regular Member
(To:Raphael08)

Very easy:

$scope.view.wdg['modelItem-1'].color = "";

--> however it works in view - not in the preview.

Announcements

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection