IsPointLight

Verifies a light object is a point light.

Syntax

rhinoscriptsyntax.IsPointLight (object_id)

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

    print "The object is a point light."

else:

    print "The object is not a point light."

Also See

AddPointLight