Announcement

Collapse
No announcement yet.

Camera clipping not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

    Code:
    ! _-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
    )
    www.simulacrum.de ... visualization for designer and architects

  • #2
    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:
    Code:
    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:
    Code:
    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

    Comment


    • #3
      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

      www.simulacrum.de ... visualization for designer and architects

      Comment


      • #4
        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.

        Comment

        Working...
        X