vrdSwitchMaterial

class vrdSwitchMaterial

(Inherits vrdMultiMaterial)

This class is used to handle all switch material properties.

Functions

vrdSwitchMaterial.getChoice()

Gets which entry of the materials in the list is set to active.

Returns:Index of the active material
Return type:integer
vrdSwitchMaterial.getStateNames()

Returns a list with all states of the switch.

The state names are sorted. The first entry is choice 0, the second is choice 1 and so on.

Returns:The state names.
Return type:List[string]
vrdSwitchMaterial.setChoice(index)

Defines which entry of the sub materials is set to active.

Parameters:index (integer) – Index of the active material