[Paraview] Re: examples of pvbatch?

Fabian Braennstroem f.braennstroem at gmx.de
Wed Jan 30 17:30:08 EST 2008


Hi,

I can recommend using 'visit' for python batch usage. There 
you can easyly record powerful python macros on the fly, 
which makes it much easier for python scripting; at least as 
long as there is no such a feature in paraview...

Regards!
Fabian

matt at mail.bettencourt.info schrieb am 01/30/2008 05:35 PM:
> 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
>>
> 
> 
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list