at object selection I'm using below code to change the selected object color ,
viewerApp.getCurrentViewer().impl.setSelectionColor(new THREE.Color(1, 0, 0));
It works fine , but how do I set the selection color to default ?
I tried both
viewerApp.getCurrentViewer().clearSelection();
and
viewerApp.getCurrentViewer().clearThemingColors();
but these methods doesn't seems to work.
Am I doing something wrong ? or what is the best practice to change color and revert it back to default ?
viewer version : 6*
This selection color is actually hardcoded and not saved in any configuration. You need to reset the color by specifying the original color, like this:
.impl.setSelectionColor(new THREE.Color(0.4, 0.6, 1));