# How to: Highlight nodes with multiple colors

**URL:** <https://forum.techsoft3d.com/t/how-to-highlight-nodes-with-multiple-colors/1331>\
**Category:** HOOPS Visualize Web\
**Tags:** webviewer, learn, knowledge-base, how-to\
**Created:** [January 18, 2023, 5:00am UTC](https://forum.techsoft3d.com/t/how-to-highlight-nodes-with-multiple-colors/1331 "2023-01-18T05:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.peragine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/gabriel.peragine/32/1535_2.png) [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Post date:** [January 18, 2023, 5:00am UTC](https://forum.techsoft3d.com/t/how-to-highlight-nodes-with-multiple-colors/1331/1 "2023-01-18T05:00:00Z")

</div>

In HOOPS Communicator you can change the selection color using `Communicator.SelectionManager.setNodeSelectionColor` and `setNodeSelectionOutlineColor`. However, these API’s are limited to a single color for selection. If you want to use multiple colors to highlight objects, you can achieve this by bypassing the selectionManager and setting colors directly using `Communicator.Model.setNodesLineColor` and `setNodesColors`. When there is no selection, reset the color using `resetNodesColor`.

Be aware that setting colors directly will be slower and will generally cause a scene refresh vs utilizing the SelectionManager for highlighting.

Please see the HOOPS Communicator Reference Manual for more info:  
[![](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/353435d6f06c8cac85cf2fd1e4726f7fbb343df3.png)Model — HOOPS Communicator documentation](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.Model.html)
