<div dir="ltr">That really helped <br><br>Many thanks =D<br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 4:12 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try that,<br>
<br>
from paraview.simple import *<br>
<br>
reader = OpenDataFile( "/home/......./disk_out_ref.ex2" )<br>
Show()<br>
Render()<br>
<br>
clip = Clip(reader)<br>
clip.ClipType.Normal = [.5,.5,0]<br>
Show(clip)<br>
Render()<br>
<br>
Hide(reader)<br>
Render()<br>
<br>
That should do what you script was doing. But at the end I make sure<br>
that I hide the full data so I can see the clip of that data.<br>
<br>
Seb<br>
<div><div class="h5"><br>
<br>
On Mon, Apr 16, 2012 at 8:50 AM, Roba Binyahib<br>
<<a href="mailto:roba.binyahib@kaust.edu.sa">roba.binyahib@kaust.edu.sa</a>> wrote:<br>
><br>
><br>
><br>
> Hi everyone<br>
><br>
> I'm having a problem with applying filters using python and paraview<br>
><br>
> I can load the data file and change the colors but when I apply filters I<br>
> can not see any changes<br>
><br>
> I'm using paraview version 3.14.0<br>
><br>
> and this is an example of the code I'm trying to run<br>
><br>
>>>> from paraview import servermanager<br>
> paraview version 3.14.0, Date: 2012-02-17<br>
>>>> servermanager.Connect()<br>
> Connection (builtin:) [1]<br>
>>>> reader = servermanager.sources.ExodusIIReader()<br>
>>>> reader.FileName = "/home/......./disk_out_ref.ex2"<br>
>>>> view = servermanager.CreateRenderView()<br>
>>>> repRed = servermanager.CreateRepresentation(reader, view)<br>
>>>> view.ResetCamera()<br>
>>>> view.StillRender()<br>
>>>> clipper = servermanager.filters.Clip(Input = reader)<br>
>>>> plane = servermanager.implicit_functions.Plane()<br>
>>>> plane.Normal = [0.5,0.5, 0.0]<br>
>>>> clipper.ClipFunction = plane<br>
>>>> repClip = servermanager.CreateRepresentation(clipper , view)<br>
>>>> view1.ResetCamera()<br>
>>>> view1.StillRender()<br>
><br>
><br>
> I hope someone can help<br>
><br>
> thanks<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a 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:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br><br>---------------------------<br><br>Best Regards,<br>Roba<br></div><br>
</div>