<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=291475116-20112009><FONT face=Arial color=#0000ff size=2>Sorry,
I've just realised you haven't passed an input to the clip filter. You need to
give the clip filter an input property from the previous pipeline like
so:</FONT></SPAN></DIV>
<DIV><SPAN class=291475116-20112009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=291475116-20112009>
<DIV class=im>
<DIV><FONT face=Arial color=#0000ff size=2>clip01<SPAN class=291475116-20112009>
</SPAN>=<SPAN class=291475116-20112009> </SPAN>Clip(<SPAN
class=291475116-20112009> </SPAN><SPAN class=291475116-20112009>Input=pipe00
</SPAN>)<BR>clip01.InsideOut=1<BR>clip01.ClipType =
"Box"<BR>clip01.ClipType.Scale=[0.5,0.5,0.5]</FONT></DIV></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff
size=2>clip01.UpdatePipeline()</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>Render()</FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><SPAN><SPAN class=291475116-20112009><FONT face=Arial color=#0000ff
size=2>does that work?</FONT></SPAN></SPAN></DIV></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>===================================<BR><BR>Adriano Gagliardi
MEng PhD<BR>Project Scientist<BR>Computational Aerodynamics<BR>Aircraft Research
Association Ltd.<BR>Manton Lane<BR>Bedford<BR><BR>Tel: 01234 32 4644<BR>E-mail:
agagliardi@ara.co.uk<BR>Url: www.ara.co.uk </FONT></P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dominic Jennewein
[mailto:dominic.jennewein@gmail.com] <BR><B>Sent:</B> 20 November 2009
16:47<BR><B>To:</B> agagliardi@ara.co.uk;
paraview@paraview.org<BR><B>Subject:</B> Re: [Paraview] Apply Clip Filter using
Python<BR></FONT><BR></DIV>
<DIV></DIV>Thank you for your answer! <BR><BR>I already tried both of
them.<BR>After adding the "Extract Surface" Filter on the clip01, everything ist
gone. <BR>I then have to press manually "Reset Bounds" for the Clip and the
"Apply" Button (for the Clip) to get the same state, as if i'm adding both
filters manually.<BR><BR>
<DIV class=gmail_quote>2009/11/20 Adriano Gagliardi <SPAN dir=ltr><<A
href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV class=im>
<DIV>clip01=Clip()<BR>clip01.InsideOut=1<BR>clip01.ClipType =
"Box"<BR>clip01.ClipType.Scale=[0.5,0.5,0.5]</DIV></DIV>
<DIV><SPAN>##try this</SPAN></DIV>
<DIV><SPAN>clip01.UpdatePipeline()</SPAN></DIV>
<DIV><SPAN>##or this, which I think should automatically update the pipeline
for you</SPAN></DIV>
<DIV><SPAN><FONT face=Arial color=#0000ff size=2>Render()</FONT></SPAN></DIV>
<P><FONT size=2>===================================<BR><BR>Adriano Gagliardi
MEng PhD<BR>Project Scientist<BR>Computational Aerodynamics<BR>Aircraft
Research Association Ltd.<BR>Manton Lane<BR>Bedford<BR><BR>Tel: 01234 32
4644<BR>E-mail: <A href="mailto:agagliardi@ara.co.uk"
target=_blank>agagliardi@ara.co.uk</A><BR>Url: <A href="http://www.ara.co.uk"
target=_blank>www.ara.co.uk</A> </FONT></P>
<DIV> </DIV><BR>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
href="mailto:paraview-bounces@paraview.org"
target=_blank>paraview-bounces@paraview.org</A> [mailto:<A
href="mailto:paraview-bounces@paraview.org"
target=_blank>paraview-bounces@paraview.org</A>] <B>On Behalf Of </B>Dominic
Jennewein<BR><B>Sent:</B> 20 November 2009 16:14<BR><B>To:</B> <A
href="mailto:paraview@paraview.org"
target=_blank>paraview@paraview.org</A><BR><B>Subject:</B> [Paraview] Apply
Clip Filter using Python<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV></DIV>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"
target=_blank>http://markmail.org/thread/54kjzlk4i5d6sprh</A><BR><BR>Thank you
for your work on ParaView! :-)<BR><BR>Dominic Jennewein<BR><BR></DIV></DIV>
<P><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">---------------------------</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">This email contains
information that is private and confidential and is intended only for the
addressee. </SPAN><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">If you
are not the intended recipient please delete it and notify us immediately by
e-mailing the sender.</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">Note: All email sent to
or from this address may be accessed by someone other than the recipient, for
system management and security reasons.</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'">Aircraft Research
Association Ltd. Registered in England, Registration No 503668 Registered
Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN></P>
<P><SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN> </P>
<P><SPAN
style="FONT-SIZE: 8pt; FONT-FAMILY: 'Arial'"></SPAN> </P></DIV></BLOCKQUOTE></DIV><BR>
<p><span style="font-family:'Arial';font-size:8pt;">---------------------------</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">This email contains information that is private and confidential and is intended only for the addressee. </span><span style="font-family:'Arial';font-size:8pt;">If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.</span></p>
<p><span style="font-family:'Arial';font-size:8pt;">Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245</span></p>
<p><span style="font-family:'Arial';font-size:8pt;"></span></p>
<p><span style="font-family:'Arial';font-size:8pt;"> </span></p>
<p><span style="font-family:'Arial';font-size:8pt;"> </span></p></BODY></HTML>