Scripting API for Glance

Hi! My team is starting work on a Paraview Glance-based web viewer for some of our 3d polygon data. Currently we’re loading and displaying STL files using the ?url= syntax when loading the page. We’d like to do things like change 3d model colors programatically before displaying the content on the web viewer. Is Glance able to do this in javascript, and if so what functions do we need to use? Thanks!

Glance does export a global instance window.Glance that can be used for controlling various aspects of the application. The core of the application can be driven via Glance.proxyManager, which is a vtkProxyManager instance that manages the views, data, and representations.