# Slicing .vtr files in Glance?

**URL:** https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402
**Category:** Web Support
**Created:** [June 27, 2023, 7:28pm UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402 "2023-06-27T19:28:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![WarinSpace\_Game](https://discourse.paraview.org/user_avatar/discourse.paraview.org/warinspace_game/32/9808_2.png) [@WarinSpace\_Game](https://discourse.paraview.org/u/WarinSpace_Game)
#### Post date: [June 27, 2023, 7:28pm UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402/1 "2023-06-27T19:28:33Z")

</div>

Hi,

I have 3 `.vtr` files (see [**here**](https://wetransfer.com/downloads/f88f43f42787230b47f5067d34a5cdcd20230627191946/cf33ff1cb33b42fae062e10916b7b24520230627192002/8b6685)), which I can open as a group in ParaView and play an animation through the files (each `.vtr` corresponds to a different timestep, ordered by the filename) without problems:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/8b0520859d5972ba430312dc763f9d7e9695fce5.png)

Is there a way to transform my data in a format so that I can apply something similar to ParaView’s slice (or clip) filter in **[Kitware Glance](https://kitware.github.io/glance/app/)**?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/367c08a71180d9b4349ee33edb4483a409eaaebb.png)

I don’t mind too much about losing a bit of resolution as long as I can ultimately preserve the slicing and animation aspect.

Also, I only care about `E-Field`:`Magnitude`, which I suspect might not be a scalar, but I’m pretty much a ParaView beginner to try to solve that, so I’d appreciate if someone could test whether they could load it into Glance.

Many thanks for your time! 🙏

---

<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: [June 27, 2023, 10:34pm UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402/2 "2023-06-27T22:34:09Z")

</div>

This was the best I could get by rescaling the scalar as a dataset

 ![Screen Shot 2023-06-27 at 4.28.28 PM](https://discourse.paraview.org/uploads/default/original/2X/d/db530715e2b8e51aa4ae747d6c2283297e2620f8.jpeg)

I tried to do the animation but it didn’t work. I would need some time to investigate what could be going wrong.

But creating a vtk.js based application slicing through your structure dataset won’t be that difficult. Just need to build custom filters and we could be good to go. We could even load the vtr in plain JS if that was needed.

---

<div class="post-metadata">

### Author: ![WarinSpace\_Game](https://discourse.paraview.org/user_avatar/discourse.paraview.org/warinspace_game/32/9808_2.png) [@WarinSpace\_Game](https://discourse.paraview.org/u/WarinSpace_Game)
#### Post date: [June 28, 2023, 8:20pm UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402/3 "2023-06-28T20:20:03Z")

</div>

@jourdain - That looks great, thank you very much for looking into this!! Let me know if you figure out what’s wrong with the animation - I’ve managed to export a .vtkjs file from ParaView and the animation seems to work (although without the slicing of course).

Thanks again - looking forward to what you come up with!

---

<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: [June 29, 2023, 7:29pm UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402/4 "2023-06-29T19:29:45Z")

</div>

I don’t think there is anything wrong with the animation export for ParaView. It is just that ParaView export are targeted for geometry and not volume. So we export the geometry (outer skin) rather than keeping the full volume.

Anyway, if you are looking for such web solution with animation on a client only approach from a ParaView export, we can do that. But Glance won’t do it out of the box. If you want to move forward on enabling such path, feel free to [reach out to Kitware for support](https://www.kitware.com/contact/).

---

<div class="post-metadata">

### Author: ![WarinSpace\_Game](https://discourse.paraview.org/user_avatar/discourse.paraview.org/warinspace_game/32/9808_2.png) [@WarinSpace\_Game](https://discourse.paraview.org/u/WarinSpace_Game)
#### Post date: [June 29, 2023, 11:49pm UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402/5 "2023-06-29T23:49:31Z")

</div>

Happy to proceed, just reached out through the link. Looking forward to our collaboration, thanks!

---

<div class="post-metadata">

### Author: ![WarinSpace\_Game](https://discourse.paraview.org/user_avatar/discourse.paraview.org/warinspace_game/32/9808_2.png) [@WarinSpace\_Game](https://discourse.paraview.org/u/WarinSpace_Game)
#### Post date: [July 5, 2023, 8:32am UTC](https://discourse.paraview.org/t/slicing-vtr-files-in-glance/12402/6 "2023-07-05T08:32:35Z")

</div>

(For the Kitware folks looking into this: looks like the download link with the sample files expired - [here](https://wetransfer.com/downloads/15818cd19a2cee35b297ad149598096920230705082751/0741a13e230e1222d7df8ca28aac21fd20230705082810/6e21f9) is a new one)
