[Paraview] Python Scripting - Slicing Data

Favre Jean jfavre at cscs.ch
Wed Sep 17 03:12:05 EDT 2014


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



More information about the ParaView mailing list