[Paraview] load obj file and display via Paraview python shell

2012-12-04 Thread Li Guan
Hi guys, I am trying to load a wavefront obj file into paraview and display it using only python shell scripts. I searched online and only find http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ This is vtk C++ code, and I am trying to convert them to python script. I got stuck at trying to find

Re: [Paraview] load obj file and display via Paraview python shell

2012-12-04 Thread Pat Marion
The python code is much simpler in ParaView: OpenDataFile('/path/to/data.obj') Show() For more commands, try: help(paraview.simple) You can also do: help() Pat On Wed, Dec 5, 2012 at 8:15 AM, Li Guan wrote: > Hi guys, > > I am trying to load a wavefront obj file into paraview and display i

Re: [Paraview] load obj file and display via Paraview python shell

2012-12-05 Thread Yumin Yuan
Hi Li, There is a wiki page on Python_Scripting in Paraview http://paraview.org/Wiki/ParaView#Python_Scripting You may find the "Trace" UI tool in paraview very useful to get yourself started. http://paraview.org/Wiki/Python_GUI_Tools#Trace HTH, Yumin On Tue, Dec 4, 2012 at 5:52 PM, Pat Marion