material .color .set  (  MaterialObjectID ,  ColorChannel ,  Color  )  
                                     
Description :

This instruction sets the color for one of the channels of a material.

Parameters :

  • ObjectID of the material.
  • Color channel to be set :
    MATERIAL_AMBIENTCOLOR : Ambient term of the material
    MATERIAL_DIFFUSECOLOR : Diffuse term of the material
    MATERIAL_SELFILLUMCOLOR : Emissive term of the material
  • Color, for example:

    COLOR_BLACK
    COLOR_GREEN
    COLOR_SILVER
    COLOR_LIME
    COLOR_GRAY
    COLOR_WHITE
    COLOR_MAROON
    COLOR_RED
    COLOR_PURPLE
    COLOR_FUSHIA
    COLOR_OLIVE
    COLOR_YELLOW
    COLOR_NAVY
    COLOR_BLUE
    COLOR_TEAL
    COLOR_AQUA
    COLOR_TRANSPARENCY
    COLOR_DEFAULT

Examples :