AddDirectionalLight

Adds a new directional light object  to the document.

Syntax

rhinoscriptsyntax.AddDirectionalLight (start_point, end_point)

rhinoscript.light.AddDirectionalLight (start_point, end_point)

Parameters

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.

Returns

Guid

The identifier of the new object if successful.

Example

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 )

Also See

IsDirectionalLight