Search code examples
autodesk-viewer

How to return the original color after painting?


I use the setThemingColor method to paint the element I need in the color I need, but I don’t know what method I should use to return the painted element to its original state, i.e. to blend the color in which it was painted. I would be very grateful for the help.


Solution

  • Try this which clears all theming color:

    viewer.clearThemingColors()
    

    However this is nothing out of the box to clear the theming color of a specific fragment. Stay tuned to our Forge Blog for future versions that might address this.