# Display Animated Property Value

**URL:** https://discourse.paraview.org/t/display-animated-property-value/10686
**Category:** ParaView Support
**Created:** [November 7, 2022, 6:29pm UTC](https://discourse.paraview.org/t/display-animated-property-value/10686 "2022-11-07T18:29:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![markowkes](https://discourse.paraview.org/user_avatar/discourse.paraview.org/markowkes/32/10350_2.png) [@markowkes](https://discourse.paraview.org/u/markowkes)
#### Post date: [November 7, 2022, 6:29pm UTC](https://discourse.paraview.org/t/display-animated-property-value/10686/1 "2022-11-07T18:29:48Z")

</div>

I am using an animation to change the isosurface value of a contour. How can I add text that displays the current isosurface value (which would change with the animation)?

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [November 7, 2022, 7:00pm UTC](https://discourse.paraview.org/t/display-animated-property-value/10686/2 "2022-11-07T19:00:53Z")

</div>

Hi @markowkes and welcome to ParaView’s discourse !

I would suggest to look at [annotations](https://docs.paraview.org/en/latest/ReferenceManual/annotations.html) . [`Annotate Attribute Data`](https://docs.paraview.org/en/latest/ReferenceManual/annotations.html?#annotate-attribute-data-filter) and [`Python Annotation`](https://docs.paraview.org/en/latest/ReferenceManual/annotations.html?#python-annotation-filter) look like a good match for your needs.

---

<div class="post-metadata">

### Author: ![markowkes](https://discourse.paraview.org/user_avatar/discourse.paraview.org/markowkes/32/10350_2.png) [@markowkes](https://discourse.paraview.org/u/markowkes)
#### Post date: [November 7, 2022, 7:34pm UTC](https://discourse.paraview.org/t/display-animated-property-value/10686/3 "2022-11-07T19:34:04Z")

</div>

Thanks for those suggestions.

The Python Annotation looks promising, but it seems to be tied to an array (Point, Cell, or Field) and allows you to pull values out of these arrays.

I’m trying to display the contour value with something like: `'Contour: %f' % (Contour2.Isosurfaces[1])`, which would display _Contour: 0.25_ if the isosurface value is at 0.25. But this displays _(error)_ since it doesn’t recognize the variable `Contour2.Isosurfaces[1]`

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [November 8, 2022, 5:08am UTC](https://discourse.paraview.org/t/display-animated-property-value/10686/4 "2022-11-08T05:08:36Z")

</div>

Right ! You may be able to do it thought Python Console but I am not sure how to keep it up-to-date during animation. Maybe somebody else can shed some light on this. In the meantime you can (ab)use the `Programmable Annotation` with the following value as `Script`:

```python
# load the module that allows to query the paraview state
import paraview.simple as simple
# get the element with name Contour1 (substitute for your case)
contour = None
for key,value in simple.GetSources().items():
    if key[0] == "Contour1":
        contour = value
        break

isosurfaces = contour.Isosurfaces

to = self.GetTableOutput()
arr = vtk.vtkStringArray()
arr.SetName("YourString")
arr.SetNumberOfComponents(1)
arr.InsertNextValue(f"isosurfaces {isosurfaces}")
to.AddColumn(arr)

```
