Hi Mathieu, thanks for your information! Now I have another logic to solve this problem. Now I obtain “time” as a dictionary, which looks like:
{0: '1250.0', 1: '1250.5', 2: '1251.0', 3: '1251.5', 4: '1252.0', 5: '1252.5', 6: '1253.0', 7: '1253.5', 8: '1254.0', 9: '1254.5'}
And as this post suggested, I use Python Annotation filter to add a timestep-varying text in render_view:
pythonAnnotation1 = PythonAnnotation(Input=velocity)
pythonAnnotation1.Expression = time[t_index]
pythonAnnotation1Display = Show(pythonAnnotation1, renderView1)
But I received the error “name ‘t_index’ is not defined”. It seems that I need to get the current time step used in active view. Do you know how to do that in paraview?