IsLightEnabled

Verifies a light object is enabled.

Syntax

rhinoscriptsyntax.IsLightEnabled (object_id)

rhinoscript.light.IsLightEnabled (object_id)

Parameters

object_id

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

Returns

Boolean

True if successful, otherwise False.

Example

import rhinoscriptsyntax as rs

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

if rs.IsLightEnabled(id):

    print "The light is enabled (on)."

else:

    print "The light is disabled (off)."

Also See

EnableLight

IsLight

LightColor

LightCount

LightName

LightObjects