LightColor

Returns or changes the color of a light.

Syntax

rhinoscriptsyntax.LightColor (object_id, color=None)

rhinoscript.light.LightColor (object_id, color=None)

Parameters

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.

Returns

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.

Example

import rhinoscriptsyntax as rs

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

if id: rs.LightColor( id, (0,255,255) )

Also See

EnableLight

IsLight

IsLightEnabled

LightCount

LightName

LightObjects