How do you get the state when the model is fully loaded

Because the model might be streaming interactively and some data might be left on the server, it is not always clear what “fully loaded” means. The `modelStructureReady’ callback lets you know that the model structure data is fully loaded and the model can be interacted with and queried. You can also use the function below to determine if the viewer has reached an idle state, which generally means that loading has ended.

await hwv.waitForIdle();

1 Like