Light.OGLLight

Description

Returns the OGLLight for this Light. The OGLLight object holds the light rendering information used by OGL.

Note: The behavior of this method changed in Softimage 2013. Previously, OGLLight was being re-evaluated for each data request. As of Softimage 2013, a snapshot of the OGLLight parameters is taken when calling Light.GetOGLLight(). This means that Light.GetOGLLight() needs to be called again when parameters affecting the OGLLight are modified.

C# Syntax

// get accessor
OGLLight rtn = Light.OGLLight;

Examples

VBScript Example

dim pointLight
set pointLight = ActiveProject.ActiveScene.Root.AddLight("Point")
LogMessage "OGL light type: " & pointLight.OGLLight.Type