<div dir="ltr"><div><div>Dear Gaël<br><br></div>In order to acess vtk<b>XML</b>UnstructuredGridReader in the python Script of a Programmable Filter/Source you need to do the following :<br><br>
<pre style="margin:12px 0px 0px;text-indent:0px"><span style="font-family:"monospace";font-weight:600;color:rgb(0,128,0)">import</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";font-weight:600;color:rgb(0,0,255)">vtk.vtkIOXML</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";font-weight:600;color:rgb(0,128,0)">as</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";font-weight:600;color:rgb(0,0,255)">ext</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">reader </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> ext</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">vtkXMLUnstructuredGridReader()</span></pre>
<pre style="margin:0px 0px 12px;text-indent:0px;font-family:"monospace""><br></pre><br></div>If you actually need the vtkUnstructuredGridReader in the python Script of a Programmable Filter/Source you need to do the following :<br><br>
<pre style="margin:12px 0px 0px;text-indent:0px"><span style="font-family:"monospace";font-weight:600;color:rgb(0,128,0)">import</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";font-weight:600;color:rgb(0,0,255)">vtk.vtkIOLegacy</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";font-weight:600;color:rgb(0,128,0)">as</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";font-weight:600;color:rgb(0,0,255)">ext</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">reader </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> ext</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">vtkUnstructuredGridReader()</span></pre>
<pre style="margin:0px 0px 12px;text-indent:0px;font-family:"monospace""><br></pre>Best regards,<br><div><div><br><div><br><br></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Fri, Apr 27, 2018 at 2:32 PM, Gaël Grail <span dir="ltr"><<a href="mailto:gael.grail@gmail.com" target="_blank">gael.grail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>New to the mailing, and first question for me: hi everyone !</div><div>I'm using the 5.4 binary version of Paraview available online, I'm not compiling my own version.</div><div>I'm trying to encapsulate an exe program in a programmable filter ; based on the programmable filter inputs and parameters, I run this program in the embedded python script ; the program writes a vtkUnstructuredGrid in the working folder. Now I want to read this vtk object and give the result as output of the programmable filter.</div><div>I have noticed that vtkUnstructuredGridReader is not available in the vtk library that is only accessible through the embedded python script.</div><div>Do you know any other way to read a vtkUnstructuredGrid, or any vtkObject, in a programmable source/filter, than coding my own reader ?</div><div><br></div><div>Many thanks,</div><div>Gaël</div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>