CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Problem with Temporal Shift Scale filter (https://www.cfd-online.com/Forums/paraview/178521-problem-temporal-shift-scale-filter.html)

VizGuy October 10, 2016 07:59

Problem with Temporal Shift Scale filter
 
Dear all,

I am trying to create an animation using pvpython where I add multiple data sources and apply a time shift to them with respect to each other using the TemporalShiftScale filter.

In short I am trying to do something like the following:

for i in range(n):
reader[i] = AnyDataReader(FileNames[i])

Then I get the animation scene.

Then in another loop I apply the TemporalShiftScale filter

for i in range(n):
tempshift[i]=TemporalShiftScale(Input=reader[i])
tempshift[i].PreShift = 10 * i

When I play the animation, it only plays the data from the first reader and then stops. Somehow the animation time is not getting updated to include the data from all the readers.

However, when I try to do this directly in the ParaView GUI everything works fine i.e. when I apply time shift to individual readers, the total animation time increases accordingly.

However it does not work when trying to do the same in a python script?

I will really appreciate any help to solve this problem. Thanks a lot in advance

best regards,
VizGuy


All times are GMT -4. The time now is 23:06.