<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks for this! But contrary to my earlier optimism it seems not so
easy to <br>
use a slice filter in a programmable filter (I played mostly with the
pvpython<br>
&nbsp;up to this point)<br>
The python vtk module does not export ExtractVOI or ImageSlice filter,<br>
the generic cutter does not work for me.<br>
If I import paraview.simple a new connection pops up and PV itself is
messed up,<br>
so I can't use simple's Slice. Can I work around this behaviour?<br>
<br>
<br>
Am 19.02.2010 01:42, schrieb Berk Geveci:
<blockquote
 cite="mid:45d654b1002181642s55896b91q2312ed3ce3a5a1a2@mail.gmail.com"
 type="cite">self.GetInputDataObject(0, n)<br>
  <br>
should return the nth input.<br>
  <br>
-berk<br>
  <br>
  <div class="gmail_quote">On Thu, Feb 18, 2010 at 4:45 PM, Thorsten
Hater <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:th@tp1.rub.de">th@tp1.rub.de</a>&gt;</span> wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Most
of building blocks I was able to figure out, but how do<br>
I retrieve the second input from the servermanager?<br>
    <div class="im"><br>
Berk Geveci wrote:<br>
&gt; It is definitely doable with the programmable filter although not
as<br>
&gt; trivial as it would be with a tool like VisTrails. The programmable<br>
&gt; filter can accept multiple inputs. You could use the point from on
of<br>
&gt; its inputs to setup the parameter of an internal slice filter -
which<br>
&gt; requires importing the vtk.graphics module. If you can't figure it<br>
&gt; out, let me know, I'll help.<br>
&gt;<br>
&gt; -berk<br>
&gt;<br>
&gt; On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater &lt;<a
 moz-do-not-send="true" href="mailto:th@tp1.rub.de">th@tp1.rub.de</a><br>
    </div>
    <div class="im">&gt; &lt;mailto:<a moz-do-not-send="true"
 href="mailto:th@tp1.rub.de">th@tp1.rub.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; Hello,<br>
&gt;<br>
&gt; &nbsp; &nbsp; I have encountered the following problem in a set of
animations:<br>
&gt; &nbsp; &nbsp; There is a moving particle in a field and I want to slice the
field<br>
&gt; &nbsp; &nbsp; at the particle's position (effectively the y-component of the<br>
&gt; &nbsp; &nbsp; position).<br>
&gt; &nbsp; &nbsp; Additionally the slice should move automatically with the
particle<br>
&gt; &nbsp; &nbsp; for making an animation.<br>
&gt; &nbsp; &nbsp; Has anybody done something like this before?<br>
&gt; &nbsp; &nbsp; The programmable filter seems a good point to start, but I need<br>
&gt; &nbsp; &nbsp; at least two inputs for figuring out the offset.<br>
&gt; &nbsp; &nbsp; Thanks in advance for any pointers or help!<br>
&gt;<br>
&gt; &nbsp; &nbsp; Cheers,<br>
&gt; &nbsp; &nbsp; &nbsp; Thorsten<br>
&gt;<br>
&gt; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; Thorsten Hater<br>
&gt; &nbsp; &nbsp; Institut fuer Theoretische Physik I<br>
&gt; &nbsp; &nbsp; Ruhr-Universitaet Bochum<br>
    </div>
&gt; &nbsp; &nbsp; E-Mail: <a moz-do-not-send="true" href="mailto:tp1@tp1.rub.de">tp1@tp1.rub.de</a>
&lt;mailto:<a moz-do-not-send="true" href="mailto:tp1@tp1.rub.de">tp1@tp1.rub.de</a>&gt;<br>
    <div class="im">&gt; &nbsp; &nbsp; Tel.: 0234/32-23-441<br>
&gt;<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
    </div>
&gt; &nbsp; &nbsp; Powered by <a moz-do-not-send="true"
 href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a
 moz-do-not-send="true" href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<br>
    <div>
    <div class="h5">&gt;<br>
&gt; &nbsp; &nbsp; Visit other Kitware open-source projects at<br>
&gt; &nbsp; &nbsp; <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; &nbsp; &nbsp; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; &nbsp; &nbsp; <a moz-do-not-send="true"
 href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; &nbsp; &nbsp; Follow this link to subscribe/unsubscribe:<br>
&gt; &nbsp; &nbsp; <a moz-do-not-send="true"
 href="http://www.paraview.org/mailman/listinfo/paraview"
 target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
    <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
    <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 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
 moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView"
 target="_blank">http://paraview.org/Wiki/ParaView</a><br>
    <br>
Follow this link to subscribe/unsubscribe:<br>
    <a moz-do-not-send="true"
 href="http://www.paraview.org/mailman/listinfo/paraview"
 target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Thorsten Hater
Institut fuer Theoretische Physik I
Ruhr-Universitaet Bochum
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:tp1@tp1.rub.de">tp1@tp1.rub.de</a>
Tel.: 0234/32-23-441 
</pre>
</body>
</html>