Adds a new spot light object to the document.
rhinoscriptsyntax.AddSpotLight (origin, radius, apex_point)
rhinoscript.light.AddSpotLight (origin, radius, apex_point)
origin |
Required. List of 3 numbers or Point3d. The 3-D origin point of the light. |
radius |
Required. Number. The radius of the cone. |
apex_point |
Required. List of 3 numbers or Point3d. The 3-D apex point of the light. |
Guid |
The identifier of the new object if successful. |
import rhinoscriptsyntax as rs
radius = 5.0
origin = rs.GetPoint("Base of cone")
if origin:
apex = rs.GetPoint("End of cone", origin)
if apex: rs.AddSpotLight(origin, radius, apex)