[Paraview] PVPython: paraview.vtk not the same as vtk

2012-04-02 Thread Hal Canary
I've got a question concerning ParaView and VTK Python scripts. My goal is to generate some test data in the form of .vti files. Using the VTK Python module, I can run the following script to generate a test datafile: #!/usr/bin/env python import vtk da = vtk.vtkFlo

Re: [Paraview] PVPython: paraview.vtk not the same as vtk

2012-04-02 Thread Pat Marion
Hi Hal, You can import paraview.vtk.io to access the xml writer. I agree with you, it's annoying, paraview's vtk module should be same as the standard vtk module. Otherwise, most scripts don't work when transitioning to pvpython. I'll go file a bug report. Pat On Mon, Apr 2, 2012 at 2:40 PM,

Re: [Paraview] PVPython: paraview.vtk not the same as vtk

2012-04-02 Thread Hal Canary
On 04/02/2012 04:45 PM, Pat Marion wrote: You can import paraview.vtk.io to access the xml writer. Thanks! import paraview.vtk.io writer = paraview.vtk.io.vtkXMLImageDataWriter() worked perfectly. No need to install VTK when I already have ParaView! -- Hal Canary http://cs.