<div dir="ltr">Dear Mathieu,<div><br></div><div>Thank you very much for this tip, it works !</div><div><br></div><div>Best regards,</div><div>Gaël Grail</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-27 14:51 GMT+02:00 Mathieu Westphal <span dir="ltr"><<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"">vtkXMLUnstructuredGridRead<wbr>er()</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(<wbr>)</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="m_7665524694538644978gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>______________________________<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/opensou<wbr>rce/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/ParaV<wbr>iew</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/mai<wbr>lman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>