Open topic with navigation
<node3d:light>.getNumber
Returns the OpenGL light number of the light.
<node3d:light>.getNumber() |
|
Remarks
The number for a light is the number in which it was added. Light 3 corresponds to the third light added.
Return Value
The OpenGL light number of the light.
Example
light = []
for x in range(5):
light.append(viz.addLight())
print(light[x].getNumber())