hi @dale
I have been working recently more with this method, creating some shadow-settings tools:
ViewDisplayModeProperty
For some reason the shadows settings set by this script method don’t stick, or basically they revert back after a while. It is tricky and I cannot reproduce exact steps, but every time I change, let’s say, Shadows ON/Off, or the shadows quality, after a short while of working with Rhino, it would revert back to what it used to before the change.
Is it possible that this method is not checking some boxes deeper in Rhino and something else later on reverts/restore the older DisplayMode settings?
Sample script would be:
Dim strCurrentDispMod_ID : strCurrentDispMod_ID = Rhino.ViewDisplayModeEx(,, False)
If Rhino.ViewDisplayModeProperty(strCurrentDispMod_ID, "Lighting\CastShadows") Then
Call Rhino.ViewDisplayModeProperty(strCurrentDispMod_ID, "Lighting\CastShadows", False)
Else
Call Rhino.ViewDisplayModeProperty(strCurrentDispMod_ID, "Lighting\CastShadows", True)
End If
Over here, the toggle would last for a bit, but then Rhino reverts back.
Any ideas?
–jarek