Hi All
As the title says: Is it possible to have the clipping planes active in all viewports as default, rather than having to create the clipping plane and then activate the viewports manually in the properties window?
TIA, Jakob
Hi All
As the title says: Is it possible to have the clipping planes active in all viewports as default, rather than having to create the clipping plane and then activate the viewports manually in the properties window?
TIA, Jakob
I’d rather not have that being the default. Sorry about that. But I suppose that means we’d like a command option that can be set and remembered or short-cutted.
Hi @wim
I wasn’t looking to change the current default - bad wording on my end. I just wish that I could script/macro the clipping plane to either a single viewport or all viewports… or named viewports, maybe?
Regards, Jakob
Here is a quickie script that will add a clipping plane in all views. IMO, this could be added as a command line option in the ClippingPlane command… --Mitch
import rhinoscriptsyntax as rs
def AddClippingPlaneAllViews():
rect=rs.GetRectangle()
if rect:
plane=rs.PlaneFromPoints(rect[0],rect[1],rect[3])
u=rect[0].DistanceTo(rect[1])
v=rect[1].DistanceTo(rect[2])
views=rs.ViewNames(True,0)
rs.AddClippingPlane(plane,u,v,views)
Thanks to both @Helvetosaur and @pascal