Verifies a light object is enabled.
Rhino.IsLightEnabled (strObject)
strObject |
Required. String. The light object's identifier. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
Const rhObjectLight = 256
Dim strObject
strObject = Rhino.GetObject("Select a light", rhObjectLight)
If Rhino.IsLightEnabled(strObject) Then
Rhino.Print "The light is enabled (on)."
Else
Rhino.Print "The light is disabled (off)."
End If