Returns or changes the color of a light.
rhinoscriptsyntax.LightColor (object_id, color=None)
rhinoscript.light.LightColor (object_id, color=None)
object_id |
Required. String or Guid. The light object's identifier. |
color |
Optional. Color. The new color value. If omitted, the current light color is returned. |
Color |
If a color value is not specified, the current light value if successful. |
Color |
If a color value is specified, the previous light value if successful. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a light", rs.filter.light)
if id: rs.LightColor( id, (0,255,255) )