The LightType option changes the type of light being added to the viewer window. The OptionValue is 0, 1, or 2. 0 is for directional light, 1 is for point light, and 2 is for spot light.
Syntax
object.Construct(“CreateModule”)
object.Option(“Type”, “Light”)
object.Do() or object.DoOnce()
object.Construct(“ModifyModule”)
object.Option(“Module”, “Light”)
object.Option(“LightType”, “OptionValue”)
object.Do() or object.DoOnce()
Example
This example shows how to set the light type to spot light.
CommandApi.Construct ("ModifyModule")
CommandApi.Option("Module", "Light")
CommandApi.Option ("LightType", "2")
CommandApi.Do()
Used by: Light
See Also