HeightFieldOpacity Option

 

The HeightFieldOpacity option changes the opacity of the Heightfield. The OptionValue is a number between 0 and 1. 0 is fully transparent and 1 is fully opaque.

 

Syntax

object.Construct(“CreateModule”)

object.Option(“SourceModule”, “data file name”)

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

object.Do() or object.DoOnce()

 

object.Construct(“ModifyModule”)

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

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

object.Do() or object.DoOnce()

 

Example

This example changes the heightfield opacity to 0.4.

 

  CommandApi.Construct("ModifyModule")

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

  CommandApi.Option("HeightFieldOpacity", "0.4")

  CommandApi.Do()

 

Used by: HeightField

 

 

See Also

Automation Model