[Paraview] Question about Python and vtk files

2010-01-25 Thread bassaidai
Hi,
is it possible to save an element (contour, slice, ...) of the pipeline
browser in wtk format (.vtm extension) using Python?
For example, with CTRL + S we can save an element (contour, ...) in .vtm
file format: can we do the same thing using Python?
We only found how to save a state file...

Thank you very much
Luis
___
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


Re: [Paraview] Question about Python and vtk files

2010-01-25 Thread Utkarsh Ayachit
Yes it's possible. Here's the example:

w = XMLMultiBlockDataWriter(Input=contour, FileName="/tmp/foo.vtm")
w.UpdatePipeline()





On Mon, Jan 25, 2010 at 8:57 AM, bassaidai  wrote:
> Hi,
> is it possible to save an element (contour, slice, ...) of the pipeline
> browser in wtk format (.vtm extension) using Python?
> For example, with CTRL + S we can save an element (contour, ...) in .vtm
> file format: can we do the same thing using Python?
> We only found how to save a state file...
>
> Thank you very much
> Luis
>
>
> ___
> 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