Returns or modifies the shadow intensity of a spot light.
rhinoscriptsyntax.SpotLightShadowIntensity (object_id, intensity=None)
rhinoscript.light.SpotLightShadowIntensity (object_id, intensity=None)
object_id |
Required. String or Guid. The light object's identifier. |
intensity |
Optional. Number. The new shadow intensity. A spot light's shadow intensity ranges from 0.0 to 1.0. If set to 0.0, the spot light will cast no shadows. If set to 1.0, the spot light will cast black shadows. If omitted, the current shadow intensity is returned. |
Number |
If intensity is not specified, then the current shadow intensity if successful. |
Number |
If intensity is specified, then the previous shadow intensity if successful. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a light", rs.filter.light)
if id: rs.SpotLightShadowIntensity(id, 0.75)