SpotLightRadius

Returns or changes the radius of a spot light.

Syntax

rhinoscriptsyntax.SpotLightRadius (object_id, radius=None)

rhinoscript.light.SpotLightRadius (object_id, radius=None)

Parameters

object_id

Required.  String or Guid.  The light object's identifier.

radius

Optional.  Number.  The new radius value.  If omitted, the current radius value is returned.

Returns

Number

If radius is not specified, then the current radius value if successful.

Number

If radius is specified, then the previous radius value if successful.

Example

import rhinoscriptsyntax as rs

id = rs.GetObject("Select a light", rs.filter.light)

if id: rs.SpotLightRadius(id, 5.0)

Also See

AddSpotLight

IsSpotLight

SpotLightHardness

SpotLightShadowIntensity