MaterialReflectiveColor

Returns or modifies a material's reflective color.  Reflective colors are represented as RGB colors.  An RGB color specifies the relative intensity of red, green, and blue to cause a specific color to be displayed.

Syntax

Rhino.MaterialReflectiveColor (intMaterialIndex [, lngColor])

Parameters

intMaterialIndex

Required.  Number.  The zero-based source material index.

lngColor

Optional.  Number.  The new color value.  If omitted, the current reflective color is returned.

Returns

Number

If lngColor is not specified, the current reflective color if successful.

Number

If lngColor is specified, the previous reflective color if successful.

Null

It not successful, or on error.

Example

Dim strObject, intIndex

strObject = Rhino.GetObject("Select object")

If Not IsNull(strObject) Then

intIndex = Rhino.ObjectMaterialIndex(strObject)

If (intIndex > -1) Then

Rhino.MaterialReflectiveColor intIndex, RGB(191, 191, 255)

End If

End If

Also See

MaterialBump

MaterialColor

MaterialName

MaterialShine

MaterialTexture

MaterialTransparency