# Display of change in values

**URL:** https://discourse.paraview.org/t/display-of-change-in-values/3609
**Category:** ParaView Support
**Tags:** vtk, python
**Created:** [February 19, 2020, 7:43pm UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609 "2020-02-19T19:43:43Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Samanvith\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/samanvith_a/32/2378_2.png) [@Samanvith\_A](https://discourse.paraview.org/u/Samanvith_A)
#### Post date: [February 19, 2020, 7:43pm UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/1 "2020-02-19T19:43:43Z")

</div>

I have set of files named CoordinatelogMass\_1, CoordinatelogMass\_2, CoordinatelogMass\_3 which represent mass. Now I have created an animation that shows the change in mass because of these three files.  
Now I want to display a variable say NUMBER which varies as the mass varies ( i.e change in files )  
Say during first 10seconds NUMBER = 1 for next 10sec NUMBER = 2 and for next 10seconds NUMBER =3.  
How can I do it?  
I have attached the file here.  
[https://drive.google.com/open?id=1YOs8aSCQRQGgB-svjDfsVkW1wiHN0jhK](https://drive.google.com/open?id=1YOs8aSCQRQGgB-svjDfsVkW1wiHN0jhK)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 20, 2020, 2:05am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/2 "2020-02-20T02:05:46Z")

</div>

Create a .pvd file like this one :

```
<?xml version="1.0"?>
<VTKFile type="Collection" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <Collection>
    <DataSet timestep="0" group="" part="0" file="dualSphereAnimation/dualSphereAnimation_P00T0000.vtp"/>
    <DataSet timestep="0" group="" part="1" file="dualSphereAnimation/dualSphereAnimation_P01T0000.vtp"/>
    <DataSet timestep="1" group="" part="0" file="dualSphereAnimation/dualSphereAnimation_P00T0001.vtp"/>
    <DataSet timestep="1" group="" part="1" file="dualSphereAnimation/dualSphereAnimation_P01T0001.vtp"/>
    <DataSet timestep="2" group="" part="0" file="dualSphereAnimation/dualSphereAnimation_P00T0002.vtp"/>
    <DataSet timestep="2" group="" part="1" file="dualSphereAnimation/dualSphereAnimation_P01T0002.vtp"/>
    <DataSet timestep="3" group="" part="0" file="dualSphereAnimation/dualSphereAnimation_P00T0003.vtp"/>
    <DataSet timestep="3" group="" part="1" file="dualSphereAnimation/dualSphereAnimation_P01T0003.vtp"/>
    <DataSet timestep="4" group="" part="0" file="dualSphereAnimation/dualSphereAnimation_P00T0004.vtp"/>
    <DataSet timestep="4" group="" part="1" file="dualSphereAnimation/dualSphereAnimation_P01T0004.vtp"/>
  </Collection>
</VTKFile>
```

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [February 20, 2020, 2:21am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/3 "2020-02-20T02:21:12Z")

</div>

Mathieu, Nice example!

---

<div class="post-metadata">

### Author: ![Samanvith\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/samanvith_a/32/2378_2.png) [@Samanvith\_A](https://discourse.paraview.org/u/Samanvith_A)
#### Post date: [February 20, 2020, 10:55am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/4 "2020-02-20T10:55:41Z")

</div>

I have created the files as you suggested. But every time I load the file, the ParaView is getting closed automatically.  
Here is the file  
[trans.pvd](https://discourse.paraview.org/uploads/short-url/2px3unWKvf3HW7PTMifUnOo9KyA.pvd) (424 Bytes)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 20, 2020, 11:06am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/5 "2020-02-20T11:06:08Z")

</div>

Save your file as .vtp file, not .vtk.

---

<div class="post-metadata">

### Author: ![Samanvith\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/samanvith_a/32/2378_2.png) [@Samanvith\_A](https://discourse.paraview.org/u/Samanvith_A)
#### Post date: [February 20, 2020, 11:39am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/6 "2020-02-20T11:39:00Z")

</div>

I did as you said. But I can’t see any variable being displayed.  
[transistion.pvd](https://discourse.paraview.org/uploads/short-url/1t1mpndIcQWMor6XYbBxRx5ld1V.pvd) (548 Bytes)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 20, 2020, 11:39am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/7 "2020-02-20T11:39:46Z")

</div>

please share hI\_1/2/3.vtp here.

---

<div class="post-metadata">

### Author: ![Samanvith\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/samanvith_a/32/2378_2.png) [@Samanvith\_A](https://discourse.paraview.org/u/Samanvith_A)
#### Post date: [February 20, 2020, 11:41am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/8 "2020-02-20T11:41:35Z")

</div>

[https://drive.google.com/open?id=1YOs8aSCQRQGgB-svjDfsVkW1wiHN0jhK](https://drive.google.com/open?id=1YOs8aSCQRQGgB-svjDfsVkW1wiHN0jhK)

You will find the files here

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 20, 2020, 11:44am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/9 "2020-02-20T11:44:42Z")

</div>

```
<?xml version="1.0"?>
<VTKFile type="Collection" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <Collection>
    <DataSet timestep="0" group="" part="0" file="hI_1.vtp"/>
    <DataSet timestep="2" group="" part="0" file="hI_2.vtp"/>
    <DataSet timestep="4" group="" part="1" file="hI_3.vtp"/>
  </Collection>
</VTKFile>

```

This works for me

---

<div class="post-metadata">

### Author: ![Samanvith\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/samanvith_a/32/2378_2.png) [@Samanvith\_A](https://discourse.paraview.org/u/Samanvith_A)
#### Post date: [February 20, 2020, 11:52am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/10 "2020-02-20T11:52:36Z")

</div>

There are two things I want to point out.

1. The transition from 1st file to 2nd file is too fast. Why is it so? ( This when animation is in sequence mode)
2. I want a variable to be displayed in the animation that changes as the file changes.  
as i said before, when the first file is active, NUMBER =1, while the 2nd file is active NUMBER =2 and so on. These things should be displayed in the animation

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 20, 2020, 11:59am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/11 "2020-02-20T11:59:07Z")

</div>

Not sure what you mean, you will find all the tools in the View -\> Animation View panel.

---

<div class="post-metadata">

### Author: ![Samanvith\_A](https://discourse.paraview.org/user_avatar/discourse.paraview.org/samanvith_a/32/2378_2.png) [@Samanvith\_A](https://discourse.paraview.org/u/Samanvith_A)
#### Post date: [February 20, 2020, 12:03pm UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/12 "2020-02-20T12:03:53Z")

</div>

How do I display variable values ( that changes) in the animation ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 21, 2020, 3:27am UTC](https://discourse.paraview.org/t/display-of-change-in-values/3609/13 "2020-02-21T03:27:29Z")

</div>


