Returns or changes the radius of a spot light.
rhinoscriptsyntax.SpotLightRadius (object_id, radius=None)
rhinoscript.light.SpotLightRadius (object_id, radius=None)
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. |
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. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a light", rs.filter.light)
if id: rs.SpotLightRadius(id, 5.0)