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 <[email protected]> wrote: > 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(<any function or variable name>) > > Pat > > On Wed, Dec 5, 2012 at 8:15 AM, Li Guan <[email protected]> wrote: >> >> 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 >> findhttp://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 the correct way to initiate a >> vtkPolyDataMapper... I wonder if there is some similar example to load such >> model using only python shell commands. >> >> Many thanks in advance, >> >> Li >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://www.paraview.org/mailman/listinfo/paraview >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
