Search code examples
autodesk-forge

Get Ghosting Autodesk forge viewer


is it possible to get the current state of the ghosting settings in the forge viewer?

I basically want to be able to do something like

if(ghosting === true) {do something} else {do something else }


Solution

  • Are you talking about this option in the settings panel ?

    Ghost hidden objects

    If so, you can get the state of this setting (and all others) like that :

    viewer.getState().renderOptions.appearance.ghostHidden