IsLight

Verifies an object is a light object.

Syntax

rhinoscriptsyntax.IsLight (object_id)

rhinoscript.light.IsLight (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")

if rs.IsLight(id):

    print "The object is a light."

else:

    print "The object is not a light."

Also See

EnableLight

IsLightEnabled

LightColor

LightCount

LightName

LightObjects