<div dir="ltr">Hey Dennis,<div><br></div><div>Which version of ParaView are you using? We have made some significant improvements to the way we handle multi-block datasets (which Exodus produces) in the latest version.</div><div><br></div><div>The interface in the Programmable Filter is somewhat different than what you would have in a ParaView Python script. This is because you actually have access to the full data and the objects in there are of different types.</div><div><br></div><div>If you give me some examples of what you are trying to do in the programmable filter, I can provide code that demonstrates the use of the API in the programmable filter.</div><div><br></div><div>Best,</div><div>-berk</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 10:32 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span style="color:#1f497d">Dennis,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">The Python/ Programmable filter is a black box to me (i.e., I won’t be much additional help).  However, the place i would start would be the new, super-duper ParaView Guide.  Kitware – and especially Utkarsh
 – have done a great job on it.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Rather than giving the link, here is how to find it.  It is sold in paper form on Amazon, and also is available as a .pdf for free (lacking 3 chapters, not related to the python filter). 
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><a href="http://paraview.org/" target="_blank">paraview.org/</a> Resources/ ParaView Guide.  This includes the link to the .pdf.  You are interested in (at least) chapter 13.  It is listed under master section II, Reference Manual.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Alan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@paraview.org</a>]
<b>On Behalf Of </b>Dennis Conklin<br>
<b>Sent:</b> Tuesday, April 28, 2015 11:11 AM<br>
<b>To:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> [EXTERNAL] [Paraview] Idiot's Guide to Programmable Filter<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">All,<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">I’m a little confused by what objects are inside a programmable filter.    I have a multi-block EXODUS dataset.    When I read this in it is a Exodus2Reader object (sp?) and I can access the blocks, pointdata, celldata,
 etc in a python script.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">Once I get inside the Programmable filter, the  blocks of the input[] seem to have different member functions than they did in a Python script.   So I can’t figure out  how to get connectivity,   number of cells
 in a block, generate new cell variables, etc.    <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">So, if I’m in a Programmable Filter, what object do I look at in either the Paraview or VTK class libraries to understand what the properties of the block are?<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">Thanks very much for any insight you can give.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:.5in">Dennis<u></u><u></u></p>
</div></div></div>
</div>

<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>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>