[Paraview] python and *.vtk

2010-07-15 Thread llapis Pencil
Hi once again, I still haven't achieve to open the *.vtk file with a python script. I tried mainly two different ways: 1. Has you said, with the OpenDataFile command. But I get the error below, as it could not read *.vtk file. #Python script from paraview.simple import * reader = OpenDataFile

Re: [Paraview] python and *.vtk

2010-07-15 Thread Utkarsh Ayachit
There's a bug in 3.8.0 in OpenDataFile() which will be fixed in 3.8.1 (already fixed in release branch). Use the attached script as a sample. It has a newer fixed version of OpenDataFile(). The second sample you used was incorrect since you are mixing VTK-python scripting with ParaView's python s