IsLightReference

Verifies a light object is referenced from another file.

Syntax

rhinoscriptsyntax.IsLightReference (object_id)

rhinoscript.light.IsLightReference (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.IsLightReference(id):

    print "The light is a reference object."

else:

    print "The light is not a reference object."

Also See

IsObjectReference