Displaying the corresponding value as the file changes during animation

You are applying the solution determined in Display of variable to a different set of values. I wouldn’t expect that to work with an entirely different set of values.

Probably the simplest thing to do for this situation is to set the Expression in the Python Annotation filter to

[13.221, 9.938, 9.611, 9.308 ... 7.221][time_index]

Basically, you are explicitly defining the time values for each value in a Python list, then using ParaView’s current time_index to pick the value to display. This isn’t a general solution for every set of VTK files with variable defined for the entire dataset, but should be good enough to get you the result you need for your thesis project.

1 Like