Enables or disables a light object.
Rhino.EnableLight (strObject [, blnEnable])
strObject |
Required. String. The identifier of the light object |
blnEnable |
Optional. Boolean. The light's enabled status. |
Boolean |
If blnEnable is not specified, then the current enabled status if successful. |
Boolean |
If blnEnable is specified, then the previous enabled status if successful. |
Null |
If not successful, or on error. |
Const rhObjectLight = 256
Dim strObject
strObject = Rhino.GetObject("Select light", rhObjectLight)
If Not IsNull(strObject) Then
Rhino.EnableLight strObject, False
End If