<p><br>
Hello all,</p>
<p>I am making a Annotation for Clip filter that shows the current location. I have been trying to use the new PythonAnnotation filter but I am not able to access the Origin and Offset properties from the input to the filters Expression. This is the Expression I tried: &#39;At %.0f Northing&#39; % input.ClipType.Offset+input.ClipType.Origin[1] </p>

<p>In order to get around this, I have made this small python script. </p>
<p>&gt; from paraview.simple import *<br>
&gt;<br>
&gt; # Get the active source<br>
&gt; actSource = GetActiveSource()<br>
&gt;<br>
&gt; # Add the filter<br>
&gt; anno = PythonAnnotation(actSource)<br>
&gt; # Calculate the Northing, offset + origin<br>
&gt; north = anno.Input[0].ClipType.Offset + anno.Input[0].ClipType.Origin[1]<br>
&gt;<br>
&gt; # Set the anno expression<br>
&gt; exprStr = &quot;&#39;At %.0f Northing&#39; % {0:.0f} &quot;.format(north)<br>
&gt; anno.Expression = exprStr<br>
&gt; Show(anno)<br>
&gt; Render() <br></p>
<p>This works initially, but I am not able to figure out how to get filter to &quot;update&quot; when the properties of the Clip filter are changed. </p>
<p>All suggestions and help are highly appreciated. </p>
<p>Thanks<br>
Gudni Karl </p>