<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 17, 2013 at 12:03 PM, Antoni Artigues Barceló <span dir="ltr"><<a href="mailto:antoni.artigues@bsc.es" target="_blank">antoni.artigues@bsc.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">Hello,</div><div class="gmail_extra">
<br></div><div class="gmail_extra">I have two questions about python programmable filters:</div><div class="gmail_extra"><br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">It is possible to add GUI parameters to a python programable filter?</div><div class="gmail_extra"><br></div></div></blockquote><div><br></div><div>We don't provide anything to make that easy. I think doing so would involve hacking the paraview source code. What I've considered before is adding new paraview properties that set string values on the underlying vtk programmable filter that get passed into the python interpreter to make it happen. </div>
<div><br></div><div>Hopefully somebody out there has an easier workaround.</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"></div><div class="gmail_extra">It is possible to import python modules from a python programable filter?</div>
<div class="gmail_extra"><br></div></div></blockquote><div style><br></div><div style>In most cases it should. As a simple check:</div><div style>import sys</div><div style>print dir(sys)</div><div style>works for me on 3.14.1 on mac lion using kitware binary</div>
<div style><br></div><div style> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div class="gmail_extra">Thanks in advance</div><span class=""><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Antoni Artigues</div><div class="gmail_extra"><br>
</div><div class="gmail_extra"><br></div></font></span></div>
<br>_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br></div></div>