Generation of Annotation from Calculator data

I have a question regarding the access of calculator data from an programmable annotation in Paraview, The calculator has generated a new array X. Information say its Multiblock Datasets (Table). How can I access this array X in an programmable annotation? I want to plot this (timedependent) value.

In the programmable annotation I tried something like

input1 = self.GetInputDataObject(0, 0)
arrayX = input1.GetData(“X”)

But i did not work. Unfortunately I do not really understand how to access the data structure of the calculators results.

Thanks for your help!
Andre

A python annotation would make this trivial, does it work for you ?

Thanks for your reply! I tried this already. As the Python expression I put X (the name of the array) in. But instead of a single value I get the whole VTKArray() with all data from the calculator. I do not understand how to address a specific column of the data in the calculator.
Thanks for your help!
Andre

I think this is what you are looking for:

val = inputs[0].RowData["X"].GetArrays()[0][0]

inputs[0] is the multiblock input
inputs[0].RowData["X"] is the whole X array on as a composite array
GetArrays()[0][0] recover the first tuple of the first block

hth

Sorry, does not work.

Error: Failed to evaluate expression ‘val = inputs[0].RowData[“X”].GetArrays()[0][0]’. The following exception stack should provide additional developer specific information. This typically implies a malformed expression. Verify that the expression is valid.

Variables in current scope are [‘input’, ‘N’, ‘minvtkOriginalPointIds’, ‘q1vtkOriginalPointIds’, ‘medvtkOriginalPointIds’, ‘q3vtkOriginalPointIds’, ‘maxvtkOriginalPointIds’, ‘avgvtkOriginalPointIds’, ‘stdvtkOriginalPointIds’, ‘sumvtkOriginalPointIds’, ‘minX’, ‘q1X’, ‘medX’, ‘q3X’, ‘maxX’, ‘avgX’, ‘stdX’, ‘sumX’, ‘minY’, ‘q1Y’, ‘medY’, ‘q3Y’, ‘maxY’, ‘avgY’, ‘stdY’, ‘sumY’, ‘minZ’, ‘q1Z’, ‘medZ’, ‘q3Z’, ‘maxZ’, ‘avgZ’, ‘stdZ’, ‘sumZ’, ‘vtkValidPointMask’, ‘Time’, ‘X’]

The array is there but…
THX!!!

Please share your data.