Procedure GetLightInfo returns the attributes of the referenced light object.
{| class="wikitable_c" |+ Table - Light Types
| ! Light Type !! Constant |
|---|
| Directional |
| 0 |
| - |
| Point |
| 1 |
| - |
| Spot |
| 2 |
| } |
PROCEDURE GetLightInfo(
h : HANDLE;
VAR lightType : INTEGER;
VAR brightness : INTEGER;
VAR isOn : BOOLEAN;
VAR castShadow : BOOLEAN);def vs.GetLightInfo(h):
return (lightType, brightness, isOn, castShadow)| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to light. |
| lightType | INTEGER | Returns light type. |
| brightness | INTEGER | Returns light brightness. |
| isOn | BOOLEAN | Returns on-off status of light. |
| castShadow | BOOLEAN | Returns whether light casts shadows. |
Availability: from MiniCAD 7.0
- Objects - Lights