[Paraview] examples of pvbatch?

matt at mail.bettencourt.info matt at mail.bettencourt.info
Wed Jan 30 12:35:07 EST 2008


i have just started myself down this road, here is something that i have
been playing with.

http://www.bettencourt.info/test.py

Hope that it helps, it reads in some frames and makes pngs using the
threshold filter, but you can swap that out

> Hi,
>
>  Does someone have examples of python script (pvpython or pvbatch)?
>
>  I need to load a VTK file, filter is thru ProbeLine and save the
> result in a png file (snapshot). I look at Servermanager2 tutorial
> but didn't succeed to do what I want. Here what I guessed from the
> interactive help:
>
> from paraview import servermanager
>
> connection=servermanager.Connect('localhost')
>
> reader=servermanager.sources.LegacyVTKFileReader(FileNames="/tmp/He.vtk")
> reader.UpdateVTKObkject()
> filter=servermanager.filters.ProbeLine(Input=reader, Source=
>
>                                        TIA,
>
>                                           Olivier.
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>




More information about the ParaView mailing list