How do we remove viewportid from clipping plane


#1

Hi,
How do we remove viewportid from clipping plane?
I get the list with the following code, but i can not remove any.

ClippingPlaneSurface cs = ak.ClippingPlaneGeometry;
cs.ViewportIds();

thanks,


#2

@serdem, i did not find something to do it and think this is still open to be added:

https://mcneel.myjetbrains.com/youtrack/issue/RH-32856
https://mcneel.myjetbrains.com/youtrack/issue/RH-34047

but there seems a way using RhinoScript (rvb) in the WIP using

Rhino.ClippingPlaneView(strIdOfClippingPlane)

If this is an option you might continue reading here

In V5 there are native commands _EnableClippingPlane and _DisableClippingPlane which could be used in an active viewport, however this requires that the clipping plane is selected and you script the commands…

c.