I'd recommend you use the Trace tools to see how to write the python code.
Get your data, apply the slice filter, and see how its arguments are set.

you'll end up with something like:

data = PhastaReader(FileName="view.pht")
Show(data)


slice = Slice(Input=data)

slice.SliceType = 'Plane'

slice.SliceOffsetValues = [0.0]
slice.SliceType.Origin = [0., 0., 0.]

slice.SliceType.Normal = [0.0, 1.0, 0.0]
Show()

Jean/CSCS

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to