Add data file type reader to paraview using pvpython

I know that you can add readers for different types of data files in order to paravise, however, everything says to do a bunch of VTK things in C ++ and (possibly worse) recompile paraview so that it knows about your file format data. On the other hand, paraview also supports python scripts . This may be a disadvantage of getting to know VTK, but to me it seems like I can manipulate VTK objects with pvpython. Is there a way to dynamically add a reader to paraview using pvpython?

+4
source share
1 answer

What you want is a "Programmable Filter in Python". Check out the ParaView Wiki . The wiki shows how to write a CSV reader in Python.

+2
source

All Articles