# Annotating a filter's input properties

**URL:** https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361
**Category:** ParaView Support
**Created:** [February 1, 2021, 4:02pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361 "2021-02-01T16:02:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![krvorren](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/b9e5f3/32.png) [@krvorren](https://discourse.paraview.org/u/krvorren)
#### Post date: [February 1, 2021, 4:02pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/1 "2021-02-01T16:02:06Z")

</div>

Hello,

I’m trying to annotate the rotation and translation input parameters of a Transform filter to the top left corner of my render view, but I can’t figure out how to access those properties. I’ve tried two things:

- Using the Python Annotation filter: I couldn’t find a way to grab those parameters from inputs[0]
- Using the Python Calculator: I got an error when I tried to call FindSource(‘Transform1’).Transform.Rotate, even if I include from paraview.simple import \* in the expression line

What would be the best way to access the Transform filter’s (or any filter’s) input properties?

---

<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 1, 2021, 4:23pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/2 "2021-02-01T16:23:02Z")

</div>

This can only be done client side using a python macro, as the values are not present in the output of the transform.

---

<div class="post-metadata">

### Author: ![krvorren](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/b9e5f3/32.png) [@krvorren](https://discourse.paraview.org/u/krvorren)
#### Post date: [February 1, 2021, 4:31pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/3 "2021-02-01T16:31:53Z")

</div>

Thanks Mathieu, that’s definitely a feature I should take advantage of more often.

---

<div class="post-metadata">

### Author: ![patchett2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patchett2002/32/235_2.png) [@patchett2002](https://discourse.paraview.org/u/patchett2002)
#### Post date: [February 5, 2021, 4:36pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/4 "2021-02-05T16:36:58Z")

</div>

Is there an example/tutorial for doing something like this? I’m trying to annotate the “Scale Factor” from a warp filter while creating an animation through that value.

---

<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 5, 2021, 4:58pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/5 "2021-02-05T16:58:50Z")

</div>

Nothing complicated, recover the value of a property and put the value into another property.

---

<div class="post-metadata">

### Author: ![krvorren](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/b9e5f3/32.png) [@krvorren](https://discourse.paraview.org/u/krvorren)
#### Post date: [February 5, 2021, 5:02pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/6 "2021-02-05T17:02:59Z")

</div>

I would use the Tools \> Start Trace feature, save the script which would include a text source handle and a warp filter handle, and then add a loop to animate

---

<div class="post-metadata">

### Author: ![patchett2002](https://discourse.paraview.org/user_avatar/discourse.paraview.org/patchett2002/32/235_2.png) [@patchett2002](https://discourse.paraview.org/u/patchett2002)
#### Post date: [February 8, 2021, 3:58pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/7 "2021-02-08T15:58:40Z")

</div>

Thank You @mwestphal and @krvorren for your replies and your patience. I made a simple pipeline with a mandelbrot source all defaults and warped it by .001. Then I have been able to make a macro with the following code:  
from paraview.simple import \*  
a = FindSource(‘WarpByScalar1’)  
b = FindSource(‘Text1’)  
b.Text = ‘Warp Scalar:’ + str(a.ScaleFactor)  
that updates the screen for a given warp value. If I use the animation inspector to iterate over warp values though, the text source does not update. I can manually walk through the warp values, click the macro and the Text source updates correctly. (sorry to co-opt this thread…). Is there a way to get this filters property automatically updated so I can simply save an animation and have the correct value annotated.

---

<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 8, 2021, 4:00pm UTC](https://discourse.paraview.org/t/annotating-a-filters-input-properties/6361/8 "2021-02-08T16:00:48Z")

</div>

Just call Update and Render ?
