[Paraview] Load series of VTK files
dkxls23 at gmail.com
dkxls23 at gmail.com
Fri Mar 6 05:56:27 EST 2015
Have you tried to name the files like this:
fileName.0000.vtu
fileName.0001.vtu
fileName.0002.vtu
...
ParaView should recognize them as a time series.
That typically worked for me (cannot test it though at the moment).
-Armin
On Fri Mar 6 12:36:01 2015 GMT+0200, Ian Krukow wrote:
> Hi all,
>
> I want to load a series of VTU files, which are all stored in one
> directory, but not numbered in a way that ParaView recognises them as
> one series. In a python script, I can do it like this:
>
> import glob
> import paraview.simple as pv
> pattern = 'directory/*.vtu'
> files = glob.glob(pattern)
> reader = pv.XMLUnstructuredGridReader( FileName=files )
>
> The directory may be an input parameter to the script.
> How can I transfer this into the GUI with the directory as a parameter?
>
> I have looked at python macros, but obviously it is not possible to
> define any parameters there.
> Is it possible to run a script from the python shell with a parameter?
> I also took a look at the Programmable Source. It should be a possible
> solution, but I have not found much explanation of what to do.
>
> Any ideas are welcome.
> Kind regards
> Ian
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
--
Sent from my Jolla
More information about the ParaView
mailing list