[Paraview] Re: examples of pvbatch?

matt at mail.bettencourt.info matt at mail.bettencourt.info
Wed Jan 30 16:26:50 EST 2008


VISIT seems very limited in the types of data that it can read in, i can't
mix and match an XY slice w/ a YZ slice for example without dumping the
full 50GB dataset because it thinks that the XY slice is 2d and the yz is
3D...


> 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