Returns the plane of a rectangular light object.
rhinoscriptsyntax.RectangularLightPlane (object_id)
rhinoscript.light.RectangularLightPlane (object_id)
object_id |
Required. String or Guid. The light object's identifier. |
Plane, extents |
Tuple of the plane and the x,y extents if successful. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a rectangular light", rs.filter.light)
if id:
rc = rs.RectangularLightPlane(id)
if rc:
plane, extents = rc
rs.AddPlaneSurface( plane, extents[0], extents[1] )