No, sorry... :(<br>I marked the object in the pipeline and added this line:<br><br>pipe00=GetActiveSource()<br>clip01=Clip(Input=pipe00)<br>clip01.InsideOut=1<br>clip01.ClipType = "Box"<br>clip01.ClipType.Scale=[0.5,0.5,0.5]<br>
clip01.UpdatePipeline() <br>Render()<br><br>after that, I used the "Extract Surface" Filter and had to apply the Clip again.<br><br>But still thank you!<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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><span><font color="#0000ff" face="Arial" 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><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span>
<div>
<div><font color="#0000ff" face="Arial" size="2">clip01<span>
</span>=<span> </span>Clip(<span> </span><span>Input=pipe00
</span>)<div class="im"><br>clip01.InsideOut=1<br>clip01.ClipType =
"Box"<br>clip01.ClipType.Scale=[0.5,0.5,0.5]</div></font></div></div>
<div><span><font color="#0000ff" face="Arial" size="2">clip01.UpdatePipeline()</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">Render()</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><span><font color="#0000ff" face="Arial" size="2">does that work?</font></span></span></div></span></div><div class="im">
<div> </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><div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Dominic Jennewein
[mailto:<a href="mailto:dominic.jennewein@gmail.com" target="_blank">dominic.jennewein@gmail.com</a>] <br><b>Sent:</b> 20 November 2009
16:47<br><b>To:</b> <a href="mailto:agagliardi@ara.co.uk" target="_blank">agagliardi@ara.co.uk</a>;
<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br><b>Subject:</b> Re: [Paraview] Apply Clip Filter using
Python<br></font><br></div><div><div></div><div class="h5">
<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" target="_blank">agagliardi@ara.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>
<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 color="#0000ff" face="Arial" 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 dir="ltr" align="left" lang="en-us">
<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>
<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></div></div></div>
</blockquote></div><br>