LightObjects

Returns the identifier of light objects in the document.

Syntax

rhinoscriptsyntax.LightObjects ()

rhinoscript.light.LightObjects ()

Parameters

None.

Returns

List

The identifiers of all lights in the document

Example

import rhinoscriptsyntax as rs

lights = rs.LightObjects()

if lights:

    rs.AddLayer( "Lights" )

    for light in lights: rs.ObjectLayer( light, "Lights" )

Also See

EnableLight

IsLight

IsLightEnabled

LightColor

LightCount

LightName