LightYDirection Option

 

The LightYDirection option sets the light Y direction. The OptionValue is set to any number. This option is only available when LightType is set to 0 or 2.

 

Syntax

object.Construct(“CreateModule”)

object.Option(“Type”, “Light”)

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

object.Option(“Module”, “Light”)

object.Option(“LightYDirection”, “OptionValue”)

object.Do() or object.DoOnce()

 

Example

This example shows how to change the Y direction for the light.

 

  CommandApi.Construct ("ModifyModule")

  CommandApi.Option("Module", "Light")

  CommandApi.Option ("LightYDirection", "-0.5")

  CommandApi.Do()

 

Used by: Light

 

 

See Also

Automation Model