Reference a clipping plane in grasshopper

Can you reference a clipping plane in grasshopper? I would like to put it on a slider if possible!

Kind Regards,

Felix

In Rhino 6 you can already do reference a clipping plane through the ID primitive:

Thats amazing that youre able to do that!

I cant seem to for some reason.

I get:

sorry, i am a moron! you made plane not a surface! Is there anyway to move the GUID around? If you try to mvoe the plane, it only moves that.

thanks for your help

private void RunScript(Guid id, Plane pl)
  {
    var cp = new Rhino.DocObjects.ObjRef(id);
    var source = cp.ClippingPlaneSurface().Plane;
    RhinoDoc.ActiveDoc.Objects.Transform(id, Transform.PlaneToPlane(source, pl), true);
  }

ClippingPlane.3dm (1.1 MB)
ClippingPlane.gh (14.9 KB)

2 Likes

dude! you rule!

Hi Mahdiyar,

I was wondering if you could look at this one and see what you think?

Best,

F