I have a pipeline with a
PVDReader as a source, and a filter on it of type
Selecting the filter,
>>> flt = GetActiveSource() >>> flt <paraview.servermanager.PythonAnnotation object at 0x7f4190035eb0> >>> inp = flt.Input >>> inp <paraview.servermanager.PVDReader object at 0x7f4190035fa0>
inp got the data from file
I also have a
RenderView1 where I plot data from the reader.
I want to add the annotation
dir2 (not fixed, but obtained dynamically from the path above).
I set the PythonAnnotation filter to obtain such data.
But I don’t know the appropriate expression.
I could not figure this out from the documentation.
What should that be?
Note: if I use
flt.Expression, I get a different object as compared to
inp above. I am copying an image of the result, since I cannot copy the result of the annotation.