AddLinearLight

Adds a new linear light object  to the document.

Syntax

rhinoscriptsyntax.AddLinearLight (start_point, end_point, width=None)

rhinoscript.light.AddLinearLight (start_point, end_point, width=None)

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.

width

Optional.  Number.  The width of the light.

Returns

Guid

The identifier of the new object if successful.

Example

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)

Also See

IsLinearLight