The python code is much simpler in ParaView:<br><br>OpenDataFile(&#39;/path/to/data.obj&#39;)<br>Show()<br><br><br>For more commands, try:<br><br>help(paraview.simple)<br><br>You can also do: help(&lt;any function or variable name&gt;)<br>

<br>Pat<br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 8:15 AM, Li Guan <span dir="ltr">&lt;<a href="mailto:li.9uan@gmail.com" target="_blank">li.9uan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi guys,<br><br>I am trying to load a wavefront obj file into paraview and display it using only python shell scripts. <br><br>I searched online and only find<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ</a><br>


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.<br>


<br>Many thanks in advance,<br><br>Li<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>