[Paraview] Write and read a vtk file (in python)

Favre Jean jfavre at cscs.ch
Fri Jun 4 08:43:41 EDT 2010


AttributeError: Attribute FileName does not exist.  This class does not
allow addition of new attributes to avoid mistakes due to typos. Use
add_attribute() if you really want to add this attribute.


You are missing the attribute FileName

Follow the example at the bottom of the page http://paraview.org/Wiki/ParaView/Python_Scripting

and type:

reader_vtk = OpenDataFile(FileName=file_name_vtk)

-----------------
Jean M. Favre
Swiss National Supercomputing Center


More information about the ParaView mailing list