<div dir="ltr">Check this blog: <a href="http://www.kitware.com/blog/home/post/783">http://www.kitware.com/blog/home/post/783</a><div>It should give you information on what you need to put in the Scripts for various passes of the filter.</div><div><br></div><div>Utkarsh<br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 16, 2014 at 5:12 PM, Omid Mahabadi <span dir="ltr"><<a href="mailto:omid.mahabadi@geomechanica.com" target="_blank">omid.mahabadi@geomechanica.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
I'm writing a python script for the Programmable Filter of ParaView
to do some analysis on my simulation results. The simulations
results are transient and hence the analysis has to be done over
time steps (perhaps similar to integrate over time filter). All bits
of my script are working fine. However, after spending a
considerable amount of time on fiddling with the script, googling,
reading mailing lists and the VTK documentation, I haven't found a
way to "loop over time steps AND update the input" from within the
script. I can loop over time steps using:<br>
<blockquote>from vtk import vtkStreamingDemandDrivenPipeline<br>
for time in
outInfo.Get(vtkStreamingDemandDrivenPipeline.TIME_STEPS()):<br>
#Perform some analysis, for instance subtracting value_v for
this time from value_v at time zero... <br>
</blockquote>
However, the input data is still from the time step where I first
applied the script. Of course, when I animate the results, the
inputs will be updated, but I will need to achieve the same results
from within my script in the Programmable Filter dialogue.<br>
<br>
How can I update the inputs from within my for loop or how can I
modify the for loop or my script to achieve that? Can Programmable
Filter handle my situation? If not, what is the alternative? <br>
<br>
Many thanks,<br>
Omid
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div></div>