Hey PV experts,
I am working on a simple task: I want to extract data from a Clip filter. I am almost there, just want to add a little check at the beginning of my macro to verify the user selected a Clip filter with Clip Type Box.
If I put the Clip to box, Paraview trace tells me to
get active source
clip1 = GetActiveSource()
and
clip1.ClipType = ‘Box’
therefore I wanted to include a condition like
if clip1.ClipType == ‘Box’
in my macro, but when doing this, I get the following error:
A RuntimeError occurred: ‘paraview.modules.vtkRemotingServerManager.vtkSMSou’ object has no attribute ‘ClipType’
The clip1 has following properties: [‘ClipType’, ‘Exact’, ‘HyperTreeGridClipper’, ‘Input’, ‘InputBounds’, ‘Invert’, ‘Crinkleclip’, ‘Scalars’, ‘UseValueAsOffset’, ‘Value’]
and the ClipType is itself a container with properties [‘Bounds’, ‘Input’, ‘Length’, ‘Position’, ‘Rotation’, ‘UseReferenceBounds’]. How do I verify the user selected a clip of type box?
Thank you!