Loop over TimestepValues : NOT Updating

I am trying to loop over my data with timestep. When I give values for n manually it works well. Here is the code:


But when I do the same thing with a loop (both FOR and WHILE) the timestep is not changing.Here is the code:



I checked whether n is incrementing properly and it does but still, the time is not incrementing

How do you check ?

While saving the data I named it as ‘Filename_%d.csv’%n so the filenames were coming properly with different n values however all the files had the same data at timestep = 0. idk why

please share your script

Here is the script:
script.txt (1.5 KB)

You need to call UpdatePipeline(time) on the plot over line filter.

Could you send the code line for that?

not tested.

script.txt (1.5 KB)

It works. Initially it said “name ‘plotOverLine1’ is not defined” so i just defined it earlier before the loop and it works perfectly. Thanks a lot :grinning_face_with_smiling_eyes:

1 Like