AddRectangularLight

Adds a new rectangular light object  to the document.

Syntax

rhinoscriptsyntax.AddRectangularLight (origin, width_point, height_point)

rhinoscript.light.AddRectangularLight (origin, width_point, height_point)

Parameters

origin

Required.  List of 3 numbers or Point3d.  The 3-D origin point of the light.

width_point

Required.  List of 3 numbers or Point3d.  The 3-D width and direction point of the light.

height_point

Required.  List of 3 numbers or Point3d.  The 3-D height and direction point of the light.

Returns

Guid

The identifier of the new object if successful.

Example

import rhinoscriptsyntax as rs

rect = rs.GetRectangle(2)

if rect: rs.AddRectangularLight( rect[0], rect[1], rect[3] )

Also See

IsRectangularLight