Announcement

Collapse
No announcement yet.

Button script doesn't work anymore?

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

  • Button script doesn't work anymore?

    Hi,

    since a long time I used this script at Rhino6|VfR4 but now it doesn't work at Rhino7|VfR5. What is wrong here?

    -Micha


    Code:
    ! _-RunPythonScript (
    
    import rhinoscriptsyntax as rs
    vray = rs.GetPlugInObject("V-Ray for Rhino")
    vray.SetSceneValue("/SettingsGI", "secondary_multiplier", 0.8
    )

    Click image for larger version

Name:	Screen Shot 10-19-21 at 07.33 AM.JPG
Views:	123
Size:	40.6 KB
ID:	1127575

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

  • #2
    Hi,

    SetSceneValue() was removed because it was creating all sort of issues.

    Code:
    ! _-RunPythonScript (
    import rhVRay as vray
    vray.Scene.SettingsGI.secondary_multiplier = 0.8
    )
    You can still use the "full" syntax, though
    Code:
    ! _-RunPythonScript (
    import rhinoscriptsyntax as rs
    vray = rs.GetPlugInObject("V-Ray for Rhino")
    vray.Scene().Plugin("/SettingsGI").Param("secondary_multiplier").Value = 0.8
    )
    however the new one above is simpler, shorter and much cooler

    Comment


    • #3
      Great, thank you very much.
      www.simulacrum.de ... visualization for designer and architects

      Comment

      Working...
      X