[Paraview] vtkXMLReader.SetTimeStep ?!

Aurélien Marsan aurelien.marsan at ecl2009.ec-lyon.fr
Mon May 31 11:42:57 EDT 2010


Sorry, I just see your answer. Sure I can.

I have many files to read, that are so called :

   - file.vts001 ----------> timestep 1
   - file.vts002 ----------> timestep 2
   - etc...

And I do some of my work in the python shell, using the VTK library.
I need to access to the different timesteps.

Up to now, I were using a function that looks like :

def reader(timestep):
> r = vtkXMLStructuredGridReader()
> r.SetFileName('file.vts%s'%(timestep))
> r.Update()
> return r.GetOutput()            or              GetOutputPort()
>

Is this what the reader method "SetTimestep" is made for ?

-- 
Aurélien MARSAN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100531/1a2cc5bf/attachment.htm>


More information about the ParaView mailing list