Skip to main content
1-Visitor
August 22, 2018
Solved

Changing colour of model item when clicked

  • August 22, 2018
  • 1 reply
  • 3020 views

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

This topic has been closed for replies.

1 reply

jmikesell1-VisitorAnswer
1-Visitor
August 22, 2018
Axcend1-VisitorAuthor
1-Visitor
August 23, 2018

Thank you.

The code that i was looking for was

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

 

12-Amethyst
September 12, 2018

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.