Verifies an object is a light object.
rhinoscriptsyntax.IsLight (object_id)
rhinoscript.light.IsLight (object_id)
object_id |
Required. String or Guid. The light object's identifier. |
Boolean |
True if successful, otherwise False. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a light")
if rs.IsLight(id):
print "The object is a light."
else:
print "The object is not a light."