Verifies a light object is a point light.
Rhino.IsPointLight (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.IsPointLight(strObject) Then
Rhino.Print "The object is a point light."
Else
Rhino.Print "The object is not a point light."
End If