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
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,
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.