# Scripting API for Glance

**URL:** https://discourse.vtk.org/t/scripting-api-for-glance/13242
**Category:** Glance
**Created:** [February 2, 2024, 8:15pm UTC](https://discourse.vtk.org/t/scripting-api-for-glance/13242 "2024-02-02T20:15:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![brenn844](https://discourse.vtk.org/user_avatar/discourse.vtk.org/brenn844/32/8409_2.png) [@brenn844](https://discourse.vtk.org/u/brenn844)
#### Post date: [February 2, 2024, 8:15pm UTC](https://discourse.vtk.org/t/scripting-api-for-glance/13242/1 "2024-02-02T20:15:12Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [February 6, 2024, 3:24pm UTC](https://discourse.vtk.org/t/scripting-api-for-glance/13242/2 "2024-02-06T15:24:56Z")

</div>

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](https://github.com/Kitware/vtk-js/tree/master/Sources/Proxy/Core/ProxyManager) instance that manages the views, data, and representations.
