I’ve noticed that rhino’s camera’s near plane may behave strangely on larger models, which made me wonder if it can be controlled. I’ve tried it via the following script borrowed from this thread, but any value put into the SetFrustumNearFar
method doesn’t seem to affect the camera’s near clip plane neither on the viewport or on the properties palette.
Is there anything else needed for it to take effect?
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino
view = Rhino.RhinoDoc.ActiveDoc.Views.ActiveView
if view:
vp = view.ActiveViewport
vp_info = Rhino.DocObjects.ViewportInfo(vp)
vf= vp_info.GetFrustum()
vp_info.SetFrustumNearFar(0.001, 200)
sc.doc.Views.Redraw()