3D Lingo Dictionary > O-S > specularColor |  |

specularColor

Syntax

    member(whichCastmember).specularColor

Description

3D cast member property; allows you to get or set the RGB value of the specular color of the first shader in the cast member. The first shader in the cast member's shader palette is always the default shader. This and all other 3D cast member properties are saved with the cast member and are restored the next time you open the movie. The default value for this property is rgb(255, 255, 255) which is white.

Example

This statement sets the specular color of the first shader in the cast member Scene to rgb(255, 0, 0). It is equivalent to `member("Scene").shader[1].specular = rgb(255, 0, 0).` Note however that the later syntax won't save the new value with the cast member when the movie is saved. Only `member.specularColor` will save the new color value.

    member("Scene").specularColor = rgb(255, 0, 0)

See also

`shininess`, `specular (light)`, `specular (shader)`