search

Home  >  Q&A  >  body text

javascript - How to completely hide components without translucency?

Now there will be a translucent effect in the Viewer to represent a hidden component. Is there a way to make the component completely hidden without the translucent effect?

阿神阿神2760 days ago1101

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-07-05 10:51:53

    Hello, to completely hide a component, you can use the visibilityManager.setNodeOff function to complete it. The following is a simple example:

    // 完全隐蔽构件
    viewer.hide( dbId );
    viewer.impl.visibilityManager.setNodeOff( dbId, true );
    // 取消完全隐蔽构件
    viewer.show( dbId );
    viewer.impl.visibilityManager.setNodeOff( dbId, false );

    This is a screenshot of the completely hidden component effect:

    More information can be found here https://forge.autodesk.com/bl...

    reply
    0
  • Cancelreply