Table of Contents

Class: Material ./Material.py

Material DataBlock object

See example in the Material module documentation on how to create an instance of a Material object.

Attributes

The following attributes are colour vectors (r, g, b)

rgbCol

The color vector (R, G, B). The RGB values can be accessed individually as .R, .G and .B

specCol

Specularity color vector (specR, specG, specG)

mirCol

Mirror color vector (mirR, mirG, mirB)

The following are float values:

alpha

The transparency

ref

Reflectivity float value

emit

Emit intensity value

amb

Ambient intensity value

spec

specularity value

specTransp

Specular transpareny

haloSize

Halo size

mode

The material mode bit vector - see Material.ModeFlags

hard

The hardness value

Base Classes   
shadow.hasIPO
shadow.hasModes
Methods   
setHaloMode
setMode
  setHaloMode 
setHaloMode ( self,  *args )

Sets the material to Halo mode. This function takes a variable number of string arguments of the types listed in self.HaloModes

Exceptions   
TypeError, "mode must be one of" % self.HaloModes.keys()
  setMode 
setMode ( self,  *args )

Set the mode of self. This function takes a variable number of string arguments of the types listed in self.Modes.

Example:

    m = Material.New()
    m.setMode('shadow', 'wire')

Exceptions   
TypeError, "mode must be one of" % self.Modes.keys()

Table of Contents

This document was automatically generated on Mon Feb 25 13:52:14 2002 by HappyDoc version r1_5