Adds a new directional light object to the document.
rhinoscriptsyntax.AddDirectionalLight (start_point, end_point)
rhinoscript.light.AddDirectionalLight (start_point, end_point)
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. |
Guid |
The identifier of the new object if successful. |
import rhinoscriptsyntax as rs
end = rs.GetPoint("End of light vector direction")
if end:
start = rs.GetPoint("Start of light vector direction", end)
if start: rs.AddDirectionalLight( start, end )