Load json

Do you know if it is possible to color a layer by an scalar range on Paraview Glance ?

Yes. If you have vtk polydata with x cells and a data set with x data points then you can color that vtk polydata using the data you have.

Look for SetActiveScalars in this example.

Once, you assign scalars, you can follow the procedure I mentioned above and you will have a .vtkjs file that has a dataset with scalars. The coloring will appear when you load this .vtkjs in Paraview Glance.

Do you know if it is possible to also load a glance file into Paraview Glance and color with a range scalar?

I don’t think that’s how it works. glance essentially captures the state of your file so when you load the glance file again, you have the same .vtkjs file. So if you loaded a .vtkjs on Paraview Glance and let’s say you changed the color scheme of a scalar. Once you download a .glance file, it will have all the changes that you made in the .vtkjs that you loaded.

1 Like