registerOnReady

Register a callback function for the event when the visualization of the model is complete. API function calls to get model data or change the appearance of the model should be executed inside the callback function.

Demo

  • Wait until model has loaded, then read properties of root item.
  • Read properties before the model has finished loading. This can cause an error.