All Frameworks  Object Hierarchy  This Framework  Indexes   

RenderingLights (Collection)

A collection of all the Rendering Lights objects.

Method Index

Add
Adds a new light to the lights collection.
Item
Returns a rendering light index in the rendering light collection.
RemoveAll
Removes all lights from the collection.
Remove
Removes a light from the lights collection.

Methods


o Func Add() As
Adds a new light to the lights collection.
o Func Item( iIndex) As
Returns a rendering light index in the rendering light collection.
Parameters:
iIndex
The index of the light to retrieve in the collection of lights. Compared with other collections, you cannot use the name of the light as argument.
Returns:
The retrieved light
Example:
The following example returns in MyLight the sixth light in a lights collection.
 Dim MyLight As RenderingLight
 Set MyLight = RenderingLights.Item(6)
 
o Sub RemoveAll()
Removes all lights from the collection.
o Sub Remove( iIndex)
Removes a light from the lights collection.

Copyright © 2003, Dassault Systèmes. All rights reserved.