Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4171

How to replicate EnableClippingPlane command in a script?

$
0
0

I can’t figure out how EnableClippingPlane and DisableClipping can be access from rhinoscript or RhinoCommon. I’ve see that there has been a new method provided in Rhino 6, but without an example I couldn’t figure out how it was meant to be used.

I found also this example here, but I’m not sure if this is meant to work “globally” or only in a specific view like EnableClippingPlane and DisableClipping:

Rhino.DocObjects.ObjRef obj = new Rhino.DocObjects.ObjRef(id);
Rhino.DocObjects.ClippingPlaneObject cpObj = obj.Object() as Rhino.DocObjects.ClippingPlaneObject;
 Rhino.Display.DisplayPipeline.EnableClippingPlanes(true);

There have been a similar question asked in 2014, but I’m hoping that since then something new might have emerged.

If there is any simpler method available please let me know.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4171

Latest Images

Trending Articles



Latest Images