<HTML>
<HEAD>
<TITLE>Re: [Paraview] Apply Clip Filter using Python</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>That looks like a bug. 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, "Dominic Jennewein" <<a href="dominic.jennewein@gmail.com">dominic.jennewein@gmail.com</a>> 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 "apply" the Clip Filter using Python?<BR>
I'm using ParaView 3.6.1 on Windows XP with the "Python Shell" from the Tools Menu.<BR>
<BR>
My Python Script:<BR>
---------------------------<BR>
clip01=Clip()<BR>
clip01.InsideOut=1<BR>
clip01.ClipType = "Box"<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 "apply" the Clip Filter via Python...I always have to press manually the "Apply" Button in the Object Inspector.<BR>
<BR>
I've also tried:<BR>
<BR>
>>> view = servermanager.CreateRenderView()<BR>
>>> rep = servermanager.CreateRepresentation(shrinkFilter, view)<BR>
>>> view.StillRender()<BR>
<BR>
out of the "Servermanger.pdf", but this creates a new window, which I don't want.<BR>
And also<BR>
<BR>
>>> 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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>