Adds a new linear light object to the document.
rhinoscriptsyntax.AddLinearLight (start_point, end_point, width=None)
rhinoscript.light.AddLinearLight (start_point, end_point, width=None)
start_point |
Required. List of 3 numbers or Point3d. The 3-D starting point of the light. |
end_point |
Required. List of 3 numbers or Point3d. The 3-D ending point and direction of the light. |
width |
Optional. Number. The width of the light. |
Guid |
The identifier of the new object if successful. |
import rhinoscriptsyntax as rs
start = rs.GetPoint("Light origin")
if start:
end = rs.GetPoint("Light length and direction", start)
if end: rs.AddLinearLight(start, end)