Unable To Change Element Colour In Viewer
To test out a PoC, I'm trying to colour a selected element red. To do this I have created a class, as below, but nothing happens to the elements when I select them. I've tried a nu
Solution 1:
Try viewer.setThemingColor
- see doc [here] (https://autodeskviewer.com/viewers/latest/docs/Autodesk.Viewing.Viewer3D.html):
viewer.setThemingColor( dbId, color:THREE.Vector4, [, model [, recursive:boolean ] ] ) //starting from Viewer v6.3 you may recursively apply color to child nodes
And to remove them try viewer.clearThemingColors
EDIT:
See live sample here
Post a Comment for "Unable To Change Element Colour In Viewer"