AddSpotLight

Adds a new spot light object  to the document.

Syntax

rhinoscriptsyntax.AddSpotLight (origin, radius, apex_point)

rhinoscript.light.AddSpotLight (origin, radius, apex_point)

Parameters

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.

Returns

Guid

The identifier of the new object if successful.

Example

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)

Also See

IsSpotLight

SpotLightHardness

SpotLightShadowIntensity