Verifies an object is a light object.
Rhino.IsLight (strObject)
strObject |
Required. String. The light object's identifier. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
Dim strObject
strObject = Rhino.GetObject("Select a light")
If Rhino.IsLight(strObject) Then
Rhino.Print "The object is a light."
Else
Rhino.Print "The object is not a light."
End If