Adds a new rectangular light object to the document.
rhinoscriptsyntax.AddRectangularLight (origin, width_point, height_point)
rhinoscript.light.AddRectangularLight (origin, width_point, height_point)
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. |
Guid |
The identifier of the new object if successful. |
import rhinoscriptsyntax as rs
rect = rs.GetRectangle(2)
if rect: rs.AddRectangularLight( rect[0], rect[1], rect[3] )