Search code examples
autodesk-forgeautodesk-viewer

Highlight multiple elements like hover effect in Autodesk Forge


I want to get the highlight effect like when I hover on an element on Forge Viewer. Is there any available function on Forge Viewer to do it on multiple elements at the same time. Thank you enter image description here


Solution

  • As already answered in this post Highlight an array of nodes, you could use viewer.setThemingColor() function to highlight elements with the color of your choice. And viewer.clearThemingColors() to remove the highlight.