CanvasMaterial Object

The CanvasMaterial object represents a 3D Canvas Palette Material.

Color GetColor
  SetColor
Translucent GetTranslucent
  SetTranslucent
Diffuse GetDiffuse
  SetDiffuse
Ambient GetAmbient
  SetAmbient
Specular GetSpecular
  SetSpecular
Texture GetTextureFileName
  SetTextureFileName
Secondary Texture GetSecondaryTextureFileName
  SetSecondaryTextureFileName
  GetSecondaryTextureTranslucent
  SetSecondaryTextureTranslucent
TranslucentMap GetTranslucentMapFileName
  SetTranslucentMapFileName

 

GetColor

Gets the material color.

Syntax

object.GetColor(Red As Variant,
Green As Variant,
Blue As Variant)

Remarks

Each color component may be from 0 to 1 in intensity.

SetColor

Sets the material color.

Syntax

object.SetColor(Red As Variant,
Green As Variant,
Blue As Variant)

Remarks

Each color component may be from 0 to 1 in intensity.

GetTranslucent

Gets the translucent factor.

Sets the

Syntax

object.GetTranslucent() As Variant

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

SetTranslucent

Sets the translucent factor.

Syntax

object.SetTranslucent(Translucent As Variant)

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

GetDiffuse

Gets the diffuse factor.

Syntax

object.GetDiffuse() As Variant

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

SetDiffuse

Sets the diffuse factor.

Syntax

object.SetDiffuse(Diffuse As Variant)

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

GetAmbient

Gets the ambient factor.

Syntax

object.GetAmbient() As Variant

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

SetAmbient

Sets the ambient factor.

Syntax

object.SetAmbient(Ambient As Variant)

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

GetSpecular

Gets the Specular factor.

Syntax

object.GetSpecular() As Variant

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

SetSpecular

Sets the Specular factor.

Syntax

object.SetSpecular(Specular As Variant)

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

GetTextureFileName

Gets the texture file name.

Syntax

object.GetTextureFileName() As Variant

SetTextureFileName

Sets the texture file name.

Syntax

object.SetTextureFileName(FileName As Variant)

GetSecondaryTextureFileName

Gets the secondary texture file name.

Syntax

object.GetSecondaryTextureFileName() As Variant

SetSecondaryTextureFileName

Sets the secondary texture file name.

Syntax

object.SetSecondaryTextureFileName(FileName As Variant)

GetSecondaryTextureTranslucent

Gets the secondary texture translucent factor.

Syntax

object.GetSecondaryTextureTranslucent() As Variant

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

SetSecondaryTextureTranslucent

Sets the secondary texture translucent factor.

Syntax

object.SetSecondaryTextureTranslucent(Translucent As Variant)

Remarks

May be from 0 to 100 as in the 3D Canvas Material Palette.

GetTranslucentMapFileName

Gets the translucent map file name.

Syntax

object.GetTranslucentMapFileName() As Variant

SetTranslucentMapFileName

Sets the translucent map file name.

Syntax

object.SetTranslucentMapFileName(FileName As Variant)