RectangularLightPlane

Returns the plane of a rectangular light object.

Syntax

rhinoscriptsyntax.RectangularLightPlane (object_id)

rhinoscript.light.RectangularLightPlane (object_id)

Parameters

object_id

Required.  String or Guid.  The light object's identifier.

Returns

Plane, extents

Tuple of the plane and the x,y extents if successful.

Example

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] )

Also See

IsRectangularLight