# Paraview Glance - default "Color By" (.vtu files)

**URL:** https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480
**Category:** Web Support
**Created:** [June 24, 2021, 6:55pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480 "2021-06-24T18:55:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![lowry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lowry](https://discourse.paraview.org/u/lowry)
#### Post date: [June 24, 2021, 6:55pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/1 "2021-06-24T18:55:12Z")

</div>

When loading a vtu/vtp file into Paraview (desktop), the scalar data array as identified within the CellData node is selected by default within the “Color By” tool, visualizing it automatically.

Within paraview glance, only the solid color is used by default. For example, glance provides an example “202-t.vtp”, which when loaded through the glance file correctly applies the “Face\_color” coloring, but if loaded through the vtp file, will not select it by default. In contrast, loading the vtp file into paraview (desktop), this data array is used and shown automatically.

Is there any way to replicate this behaviour in Glance? I’m using glance internally at my job, where files are loaded automatically for us via URL, and would love for our 1 and only data array per file to be loaded without having to navigate through menus every time.

---

<div class="post-metadata">

### Author: ![Forrest\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/forrest_li/32/1935_2.png) [@Forrest\_Li](https://discourse.paraview.org/u/Forrest_Li)
#### Post date: [June 25, 2021, 8:32pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/2 "2021-06-25T20:32:13Z")

</div>

Hi, thanks for this report; this is a good feature to have in Glance! I will go ahead and add it, and I will update this thread when there is a PR.

---

<div class="post-metadata">

### Author: ![lowry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lowry](https://discourse.paraview.org/u/lowry)
#### Post date: [June 29, 2021, 3:16pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/3 "2021-06-29T15:16:57Z")

</div>

That is excellent news, thank you 😃

---

<div class="post-metadata">

### Author: ![Forrest\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/forrest_li/32/1935_2.png) [@Forrest\_Li](https://discourse.paraview.org/u/Forrest_Li)
#### Post date: [July 14, 2021, 3:39pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/4 "2021-07-14T15:39:59Z")

</div>

PR is out: [feat(ColorBy): Use default scalars for colorBy by floryst · Pull Request #397 · Kitware/paraview-glance · GitHub](https://github.com/Kitware/paraview-glance/pull/397)

---

<div class="post-metadata">

### Author: ![lowry](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lowry](https://discourse.paraview.org/u/lowry)
#### Post date: [July 20, 2021, 4:22pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/5 "2021-07-20T16:22:18Z")

</div>

Hi there, thanks for the work you put into this @Forrest_Li

I just pulled master since your PR got get approved, and rebuilt a local version of the site.  
It appears to partially work. When the file is loaded it is still a solid white, but once the ColorBy widget is opened & expanded → then the color effect is applied

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/9e089f42cf5fe18946910145cadf073645163e6f.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/f61978c310083d5d156d12004728f374cdc9462b.png)

This is the file I was testing with by the way, I thought I had put it in the OP but I must have forgotten  
[202-t.vtp](https://discourse.paraview.org/uploads/short-url/HR3ojcymld1EpWGlW9B6Y5hCcl.vtp) (80.2 KB)  
Would it be possible to have the data set be visualized without needing to expand & open up the widgets?

---

<div class="post-metadata">

### Author: ![Forrest\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/forrest_li/32/1935_2.png) [@Forrest\_Li](https://discourse.paraview.org/u/Forrest_Li)
#### Post date: [July 20, 2021, 4:32pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/6 "2021-07-20T16:32:24Z")

</div>

Hi, yes that is a minor bug that will be corrected. Thanks for catching that. I’ll update you when I’ve made those changes.

---

<div class="post-metadata">

### Author: ![Forrest\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/forrest_li/32/1935_2.png) [@Forrest\_Li](https://discourse.paraview.org/u/Forrest_Li)
#### Post date: [July 21, 2021, 10:00pm UTC](https://discourse.paraview.org/t/paraview-glance-default-color-by-vtu-files/7480/7 "2021-07-21T22:00:23Z")

</div>

This should be fixed in the latest version.
