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

Reply via email to