# FindClippingPlanesForViewport do not find hidden clipping planes

**URL:** <https://discourse.mcneel.com/t/findclippingplanesforviewport-do-not-find-hidden-clipping-planes/220655>\
**Category:** Rhino Developer\
**Tags:** windows, rhino8\
**Created:** [July 8, 2026, 1:21pm UTC](https://discourse.mcneel.com/t/findclippingplanesforviewport-do-not-find-hidden-clipping-planes/220655 "2026-07-08T13:21:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iltabe](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/iltabe/32/487228_2.png) [@iltabe](https://discourse.mcneel.com/u/iltabe)\
**Post date:** [July 8, 2026, 1:21pm UTC](https://discourse.mcneel.com/t/findclippingplanesforviewport-do-not-find-hidden-clipping-planes/220655/1 "2026-07-08T13:21:48Z")

</div>

Hi!

I’m trying to filter objects in a detail view based on the visibility and exclude hidden objects or on hidden layer or not visible because outside the range of a clipping plane etc.

I use the api call `doc.Objects.FindClippingPlanesForViewport(detail.Viewport)` to get all clipping planes that are active for my detail view.

It works well, however if I HIDE the clipping plane object in the model, the above function does not return it.

Is this intended? I would expect that active clipping planes are returned even if hidden or on hidden layers since they are still clipping out geometries in the detail view.

I vibe coded a working example.  
[FindClippingPlanesPerViewport.py](https://discourse.mcneel.com/uploads/short-url/tgHpnlzvL6CoBPWmlNkhNYsiIGX.py) (4.0 KB)

Thank you,  
Gianluca

---

<div class="post-metadata">

**Author:** ![scottd](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/scottd/32/494002_2.png) [@scottd](https://discourse.mcneel.com/u/scottd)\
**Post date:** [July 23, 2026, 3:23pm UTC](https://discourse.mcneel.com/t/findclippingplanesforviewport-do-not-find-hidden-clipping-planes/220655/2 "2026-07-23T15:23:42Z")

</div>

Yeah, I can see that the term hidden here is unusual, since the clipping plane is still active.

We will take a look at this.

---

<div class="post-metadata">

**Author:** ![brian](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/brian/32/504171_2.png) [@brian](https://discourse.mcneel.com/u/brian)\
**Post date:** [August 11, 2026, 11:08pm UTC](https://discourse.mcneel.com/t/findclippingplanesforviewport-do-not-find-hidden-clipping-planes/220655/3 "2026-08-11T23:08:17Z")

</div>

[RH-97156](https://mcneel.myjetbrains.com/youtrack/issue/RH-97156) is fixed in [Rhino 8 Service Release 35](https://www.rhino3d.com/download/rhino/8/latest)

---

<div class="post-metadata">

**Author:** ![iltabe](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/iltabe/32/487228_2.png) [@iltabe](https://discourse.mcneel.com/u/iltabe)\
**Post date:** [August 17, 2026, 7:14am UTC](https://discourse.mcneel.com/t/findclippingplanesforviewport-do-not-find-hidden-clipping-planes/220655/4 "2026-08-17T07:14:00Z")

</div>

Thank you Scott and Brian!  
Cheers,  
Gianluca
