Hi Nikos,
I think, there are basically two different ways of doing this.
You can set up your visualization in the ParaView GUI, and then write a
small python script, that changes the filename and saves the images.
That would look something like this (not tested):
filenames = [list of filenames]
source = GetActiveSource()
for f in filenames:
source.FileNames = [f]
Render()
WriteImage(f+'.png')
For GetActiveSource you have to select the reader first (maybe someone
has a better way of doing this). You can execute the script with the
Python Shell.
For details of python syntax, I recommend
http://docs.python.org/3/tutorial/index.html (you don't have to do the
whole tutorial).
The other way is to record your pipeline with the trace tool (see
http://paraview.org/Wiki/Python_GUI_Tools). Then you can do the same
loop in the python script, and just execute the script via command line.
Kind regards
Ian
Am 01.06.2013 02:39, schrieb Nikolaos Beratlis:
Hi,
I am switching to using Paraview from Tecplot and I need to do the
following thing: I have a series of XDMF files that I need to read into
Paraview one by one, apply some filters and export an image. In Tecplot
I would write a macro, inside the macro there was a loop that changed
the name of the file, then read the filename and in a style that applied
all the filters and finally exported an image. I would run the macro in
batch mode.
How can I do sth similar in Paraview? I have no experience with python.
Kind regards,
Nikos
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview