Verifies a light object is a rectangular light.
rhinoscriptsyntax.IsRectangularLight (object_id)
rhinoscript.light.IsRectangularLight (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", rs.filter.light)
if rs.IsRectangularLight(id):
print "The object is a rectangular light."
else:
print "The object is not a rectangular light."