IsDirectionalLight

Verifies a light object is a directional light.

Syntax

rhinoscriptsyntax.IsDirectionalLight (object_id)

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

    print "The object is a directional light."

else:

    print "The object is not a directional light."

Also See

AddDirectionalLight