Camera clipping not working

Hi,

I tried to get a clipping by camera parameters, but it doesn’t work. Did I something wrong?

Best-
Micha

! _-RunPythonScript (
import rhinoscriptsyntax as rs

clipping_near = 1500
clipping_far = 2000

vray = rs.GetPlugInObject("V-Ray for Rhino")
render_view = vray.Scene().Plugin("/RenderView")

render_view.Param("clipping").Value = True
render_view.Param("clipping_near").Value = clipping_near
render_view.Param("clipping_far").Value = clipping_far
)

Hi,

We have updated the camera clipping behavior to allow for script modifications (update 2).
You can now do the following:

Sets the camera near clipp plane to 50:


import rhinoscriptsyntax as rs
import System
rv = rs.GetPlugInObject("V-Ray for Rhino").Scene().Plugin("/RenderView")
rv.Param("clipping").Value = System.Boolean(True)
rv.Param("clipping_near").Value = System.Single(50.0)

Reset to the default behavior:


import rhinoscriptsyntax as rs
import System
rv = rs.GetPlugInObject("V-Ray for Rhino").Scene().Plugin("/RenderView")
rv.Param("clipping").Value = System.Boolean(False)

Regards,
Konstantin

Hi @Konstantin ,

today I tested the clipping plane functionality and I’m impressed how good it works, the quality is great. Thank you for the scripts.

(I think on the long run this nice functionality could be added to the UI so that non advanced users could use it too.)

Best-
Micha

I think on the long run this nice functionality could be added to the UI so that non advanced users could use it too.
We are considering this but I can’t guarantee it.