<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: 'At %.0f Northing' % input.ClipType.Offset+input.ClipType.Origin[1] </p>
<p>In order to get around this, I have made this small python script. </p>
<p>> from paraview.simple import *<br>
><br>
> # Get the active source<br>
> actSource = GetActiveSource()<br>
><br>
> # Add the filter<br>
> anno = PythonAnnotation(actSource)<br>
> # Calculate the Northing, offset + origin<br>
> north = anno.Input[0].ClipType.Offset + anno.Input[0].ClipType.Origin[1]<br>
><br>
> # Set the anno expression<br>
> exprStr = "'At %.0f Northing' % {0:.0f} ".format(north)<br>
> anno.Expression = exprStr<br>
> Show(anno)<br>
> Render() <br></p>
<p>This works initially, but I am not able to figure out how to get filter to "update" 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>