[Paraview] problem in displaying filters affects

Roba Binyahib roba.binyahib at kaust.edu.sa
Mon Apr 16 08:50:16 EDT 2012


Hi everyone

I'm having a problem with applying filters using python and paraview

I can load the data file and change the colors but when I apply filters I
can not see any changes

I'm using paraview version 3.14.0

and this is an example of the code I'm trying to run

>>> from paraview import servermanager
paraview version 3.14.0, Date: 2012-02-17
>>> servermanager.Connect()
Connection (builtin:) [1]
>>> reader = servermanager.sources.ExodusIIReader()
>>> reader.FileName = "/home/......./disk_out_ref.ex2"
>>> view = servermanager.CreateRenderView()
>>> repRed = servermanager.CreateRepresentation(reader, view)
>>> view.ResetCamera()
>>> view.StillRender()
>>> clipper = servermanager.filters.Clip(Input = reader)
>>> plane = servermanager.implicit_functions.Plane()
>>> plane.Normal = [0.5,0.5, 0.0]
>>> clipper.ClipFunction = plane
>>> repClip  = servermanager.CreateRepresentation(clipper , view)
>>> view1.ResetCamera()
>>> view1.StillRender()


I hope someone can help

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120416/4a595348/attachment.htm>


More information about the ParaView mailing list