# Extract Clip Filter parameters

**URL:** https://discourse.paraview.org/t/extract-clip-filter-parameters/16579
**Category:** ParaView Support
**Created:** [May 7, 2025, 9:13am UTC](https://discourse.paraview.org/t/extract-clip-filter-parameters/16579 "2025-05-07T09:13:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![madmoonman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@madmoonman](https://discourse.paraview.org/u/madmoonman)
#### Post date: [May 7, 2025, 9:13am UTC](https://discourse.paraview.org/t/extract-clip-filter-parameters/16579/1 "2025-05-07T09:13:29Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 7, 2025, 1:13pm UTC](https://discourse.paraview.org/t/extract-clip-filter-parameters/16579/2 "2025-05-07T13:13:10Z")

</div>

`if clip1.ClipType.SMProxy.GetXMLName() == "Box"` should do the trick

---

<div class="post-metadata">

### Author: ![madmoonman](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@madmoonman](https://discourse.paraview.org/u/madmoonman)
#### Post date: [May 9, 2025, 7:06am UTC](https://discourse.paraview.org/t/extract-clip-filter-parameters/16579/3 "2025-05-09T07:06:37Z")

</div>

Yes, it does. Thank you Mathieu!

If I wanted to find such kind of information myself, where could I do that? Is there some documentation I missed or does it need profound knowledge of the PV/VTK source code?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 12, 2025, 6:48am UTC](https://discourse.paraview.org/t/extract-clip-filter-parameters/16579/4 "2025-05-12T06:48:33Z")

</div>

I’m afraid its a bit deep in the weeds to understand why this must be done like this.

In any case, the doc is here: [https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html#a4db40a8dee176e2a51e929d95346f6bc](https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html#a4db40a8dee176e2a51e929d95346f6bc)
