<HTML>
<HEAD>
<TITLE>Re: [Paraview] &nbsp;Apply Clip Filter using Python</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>That looks like a bug. &nbsp;I submitted a report.<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><a href="http://www.paraview.org/Bug/view.php?id=9958">http://www.paraview.org/Bug/view.php?id=9958</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
-Ken<BR>
<BR>
<BR>
On 11/20/09 9:13 AM, &quot;Dominic Jennewein&quot; &lt;<a href="dominic.jennewein@gmail.com">dominic.jennewein@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello!<BR>
I'm new to ParaView and Python and have the following question:<BR>
<BR>
How can I &quot;apply&quot; the Clip Filter using Python?<BR>
I'm using ParaView 3.6.1 on Windows XP with the &quot;Python Shell&quot; from the Tools Menu.<BR>
<BR>
My Python Script:<BR>
---------------------------<BR>
clip01=Clip()<BR>
clip01.InsideOut=1<BR>
clip01.ClipType = &quot;Box&quot;<BR>
clip01.ClipType.Scale=[0.5,0.5,0.5]<BR>
Show(clip01)<BR>
<BR>
surface=ExtractSurface()<BR>
Show(surface)<BR>
<BR>
Render()<BR>
---------------------------<BR>
<BR>
I haven't found the possibilty to &quot;apply&quot; the Clip Filter via Python...I always have to press manually the &quot;Apply&quot; Button in the Object Inspector.<BR>
<BR>
I've also tried:<BR>
<BR>
&gt;&gt;&gt; view = servermanager.CreateRenderView()<BR>
&gt;&gt;&gt; rep = servermanager.CreateRepresentation(shrinkFilter, view)<BR>
&gt;&gt;&gt; view.StillRender()<BR>
<BR>
out of the &quot;Servermanger.pdf&quot;, but this creates a new window, which I don't want.<BR>
And also<BR>
<BR>
&gt;&gt;&gt; clip01.UpdatePipeline()<BR>
<BR>
doesn't work.<BR>
<BR>
There was a nearly similar question on this mailinglist, but it doesn't help me, I'm sorry:<BR>
<BR>
<a href="http://markmail.org/thread/54kjzlk4i5d6sprh">http://markmail.org/thread/54kjzlk4i5d6sprh</a><BR>
<BR>
Thank you for your work on ParaView! :-)<BR>
<BR>
Dominic Jennewein<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>