Search code examples
autodesk-viewer

How to hide items?


I am working on a project in which we load two almost identical models. I have a function that paints the different dbId elements of the models in different colors. Next, I have to hide those elements that are the same for the two models. I tried many options, but did not succeed. I ask for your help.


Solution

  • Try the visibiliyManager (see unofficial doc here):

    modelA.visibilityManager.hide(dbidsA) //single or array
    modelB.visibilityManager.hide(dbidsB)