# setScalarRange

**URL:** https://discourse.paraview.org/t/setscalarrange/7817
**Category:** Web Support
**Created:** [August 13, 2021, 6:58am UTC](https://discourse.paraview.org/t/setscalarrange/7817 "2021-08-13T06:58:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [August 13, 2021, 6:58am UTC](https://discourse.paraview.org/t/setscalarrange/7817/1 "2021-08-13T06:58:05Z")

</div>

Hi @Forrest_Li,

**I am wondering how to make Paraview Glance use a range defined in a .vtkjs file?**

[This](https://discourse.paraview.org/uploads/short-url/w0Rklu0EzKySL7UXKBdqd4dJyOa.vtkjs) (18.9 KB) is the .vtkjs file.  
Can I define the range in the outermost index.json like so? I tried this and it wasn’t picked up by Paraview Glance.

 ![scalar range](https://discourse.paraview.org/uploads/default/original/2X/c/c0c49686186a22a5871943037cac98ae0f758bdb.png)

**If not, where in a .vtkjs I should define this range?**

Also, **Can I add multiple mappers for multiple scalars that I have?** I will not use colorByArrayName property in others.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [August 13, 2021, 4:25pm UTC](https://discourse.paraview.org/t/setscalarrange/7817/2 "2021-08-13T16:25:02Z")

</div>

On the mapper you will also have to say to use the `mapper` range rather than the `lookup table` range. Glance tends to focus on the Lookup Table range so the color scale is properly shared across objects.

---

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [August 14, 2021, 2:35am UTC](https://discourse.paraview.org/t/setscalarrange/7817/3 "2021-08-14T02:35:02Z")

</div>

I am sorry. I don’t understand what you suggested @jourdain. Did you mean `useLookupTableScalarRange` to false? Because that doesn’t change anything.

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [August 14, 2021, 9:42pm UTC](https://discourse.paraview.org/t/setscalarrange/7817/4 "2021-08-14T21:42:13Z")

</div>

Yes I mean `useLookupTableScalarRange` but Glance by design will revert it, no matter what. Hence `that does not work`.

---

<div class="post-metadata">

### Author: ![devngc](https://discourse.paraview.org/user_avatar/discourse.paraview.org/devngc/32/5514_2.png) [@devngc](https://discourse.paraview.org/u/devngc)
#### Post date: [August 16, 2021, 7:38am UTC](https://discourse.paraview.org/t/setscalarrange/7817/5 "2021-08-16T07:38:22Z")

</div>

@jourdain, are you saying it’s futile to try to setup scalar range in Praview glance through .vtkjs?

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [August 16, 2021, 4:00pm UTC](https://discourse.paraview.org/t/setscalarrange/7817/6 "2021-08-16T16:00:32Z")

</div>

An option in glance is to have a lookup table with unique name for each range you want to use. The LookupTable is where the range is stored for the color mapping in Glance, not on the representation/mapper.
