Skip to main content
1-Visitor
Aug 22, 2018 12:57 PM UTC
Solved

Changing colour of model item when clicked

What is the code for changing the colour of model item ?

This topic has been closed for replies.
jmikesellAnswer
1-Visitor
Aug 22, 2018 3:26 PM UTC

4 replies

jmikesell1-VisitorAnswer
1-Visitor
Aug 22, 2018 3:26 PM UTC
Axcend1-VisitorAuthor
1-Visitor
Aug 23, 2018 7:17 AM UTC

Thank you.

The code that i was looking for was

$scope.view.wdg['modelItem-1'].color = 'rgba(255,0,0, 1.0)';

 

Translate
12-Amethyst
Sep 12, 2018 9:18 AM UTC

Could you please provide a more detailed explanation on how to achieved a color change when clicking a model item?

 

I have tried entering the code both in the home.js and under the 'click JS'  but this does not work. Unfortunately I have no real coding experience. 

 

many thanks. 

Translate