Announcement

Collapse
No announcement yet.

Little wish: set tilt 0 per toolbar button

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

  • Little wish: set tilt 0 per toolbar button

    Hi,

    the command _vrayCamGuessVertical allow to set a tilt per toolbar button (LMB). It could be nice, if it could set back to 0, best per RMB on the same button.
    www.simulacrum.de ... visualization for designer and architects

  • #2
    Come on - nobody at home Such a little enhancement, easy to add ... and no answer?
    www.simulacrum.de ... visualization for designer and architects

    Comment


    • #3
      I tried this button script, but it doesn't work. Also other old scripts show the attached error - is something changed at Rhino7|VfR5?

      ! _-RunPythonScript (

      import rhinoscriptsyntax as rs
      vray = rs.GetPlugInObject("V-Ray for Rhino")
      vray.SetSceneValue("/CameraPhysical", "lens_shift", 0.0)
      )
      www.simulacrum.de ... visualization for designer and architects

      Comment


      • #4
        SetSceneValue() accepts only strings as parameters
        vray.SetSceneValue("/CameraPhysical", "lens_shift","0")

        Comment


        • #5
          I tried this now:

          Code:
          ! _-RunPythonScript (
          
          import rhinoscriptsyntax as rs
          vray = rs.GetPlugInObject("V-Ray for Rhino")
          vray.SetSceneValue("/CameraPhysical", "lens_shift","0")
          )
          but get this:
          Click image for larger version

Name:	Screen Shot 12-19-20 at 09.05 AM.JPG
Views:	95
Size:	27.2 KB
ID:	1096571
          www.simulacrum.de ... visualization for designer and architects

          Comment

          Working...
          X