Blender Documentation Volume II - Reference Guide: Last modified March 29 2004 S68 | ||
---|---|---|
<<< Previous | Python API Reference | Next >>> |
This object gives access to Materials in Blender.
Warning: Most member variables assume values in some [Min, Max] interval. When trying to set them, the given parameter will be clamped to lie in that range: if val < Min, then val = Min, if val > Max, then val = Max.
Method Summary | ||
float | getAdd() Get the glow factor. | |
float | getAlpha() Get the alpha (transparency) value. | |
float | getAmb() Get the ambient color blend factor. | |
float | getEmit() Get the emitting light intensity. | |
float | getFlareBoost() Get the flare's extra strength. | |
int | getFlareSeed() Get flare's offset in the seed table. | |
float | getFlareSize() Get the ratio: flareSize / haloSize. | |
int | getHaloSeed() Get the seed for random ring dimension and line location in halos. | |
float | getHaloSize() Get the halo size. | |
int | getHardness() Get the hardness of the specularity. | |
list of 3 floats | getMirCol() Get the mirror color triplet. | |
int | getMode() Get this Material's mode flags. | |
string | getName() Get the name of this Material object. | |
int | getNFlares() Get the number of halo subflares. | |
int | getNLines() Get the number of star shaped lines on each halo. | |
int | getNRings() Get the number of rings on each halo. | |
int | getNStars() Get the number of points in the halo stars. | |
float | getRef() Get the reflectivity value. | |
list of 3 floats | getRGBCol() Get the rgb color triplet. | |
float | getSpec() Get the specularity value. | |
list of 3 floats | getSpecCol() Get the specular color triplet. | |
float | getSpecTransp() Get the specular transparency. | |
float | getSubSize() Get the dimension of subflare, dots and circles. | |
float | getZOffset() Get the artificial offset for faces with this Material. | |
| setAdd(add) Set the glow factor. | |
| setAlpha(alpha) Set the alpha (transparency) value. | |
| setAmb(amb) Set the ambient color blend factor. | |
| setEmit(emit) Set the emitting light intensity. | |
| setFlareBoost(flareboost) Set the flare's extra strength. | |
| setFlareSeed(flareseed) Set flare's offset in the seed table. | |
| setFlareSize(flaresize) Set the ratio: flareSize / haloSize. | |
| setHaloSeed(haloseed) Set the seed for random ring dimension and line location in halos. | |
| setHaloSize(halosize) Set the halo size. | |
| setHardness(hardness) Set the hardness of the specularity. | |
| setMirCol(rgb) Set the mirror color triplet. | |
| setMode(m, m2, m3, and_so_on, up_to_21) Set this Material's mode flags. | |
| setName(name) Set the name of this Material object. | |
| setNFlares(nflares) Set the number of halo subflares. | |
| setNLines(nlines) Set the number of star shaped lines on each halo. | |
| setNRings(nrings) Set the number of rings on each halo. | |
| setNStars(nstars) Set the number of points in the halo stars. | |
| setRef(ref) Set the reflectivity value. | |
| setRGBCol(rgb) Set the rgb color triplet. | |
| setSpec(spec) Set the specularity value. | |
| setSpecCol(rgb) Set the specular color triplet. | |
| setSpecTransp(spectransp) Set the specular transparency. | |
| setSubSize(subsize) Set the dimension of subflare, dots and circles. | |
| setZOffset(zoffset) Set the artificial offset for faces with this Material. |
Class Variable Summary | ||
| add - Glow factor - [0.0, 1.0]. | |
| alpha - Alpha (translucency) component of the Material - [0.0, 1.0]. | |
| amb - Ambient factor - [0.0, 1.0]. | |
| B - Blue component of rgbCol- [0.0, 1.0]. | |
| emit - Emitting light intensity - [0.0, 1.0]. | |
| flareBoost - Flare's extra strength - [0.1, 10.0]. | |
| flareSeed - Offset in the seed table - [0, 255]. | |
| flareSize - Factor the flare is larger than the halo - [0.1, 25.0]. | |
| G - Green component of rgbCol- [0.0, 1.0]. | |
| haloSeed - To use random values for ring dimension and line location - [0, 255]. | |
| haloSize - Dimension of the halo - [0.0, 100.0]. | |
| hard - Hardness of the specularity - [1, 255]. | |
| mirCol - Mirror color rgb triplet. | |
int | mode - Mode flags as an or'ed int value. | |
| name - Material's name. | |
| nFlares - Number of halo subflares - [1, 32]. | |
| nLines - Number of star shaped lines on each halo - [0, 250]. | |
| nRings - Number of halo rings - [0, 24]. | |
| nStars - Number of points on the halo stars - [3, 50]. | |
| R - Red component of rgbCol- [0.0, 1.0]. | |
| ref - Reflectivity - [0.0, 1.0]. | |
| rgbCol - Material's RGB color triplet. | |
| spec - Specularity - [0.0, 2.0]. | |
| specCol - Specular color rgb triplet. | |
| specTransp - Specular transparency - [0.0, 1.0]. | |
| subSize - Dimension of subflares, dots and circles - [0.1, 25.0]. | |
| zOffset - Artificial Z offset for faces - [0.0, 10.0]. |
getMode() Get this Material's mode flags.
|
setAlpha(alpha) Set the alpha (transparency) value.
|
setAmb(amb) Set the ambient color blend factor.
|
setEmit(emit) Set the emitting light intensity.
|
setFlareBoost(flareboost) Set the flare's extra strength.
|
setFlareSeed(flareseed) Set flare's offset in the seed table.
|
setFlareSize(flaresize) Set the ratio: flareSize / haloSize.
|
setHaloSeed(haloseed) Set the seed for random ring dimension and line location in halos.
|
setHaloSize(halosize) Set the halo size.
|
setHardness(hardness) Set the hardness of the specularity.
|
setMirCol(rgb=None) Set the mirror color triplet. If rgb is None, set the color to black.
|
setMode(m=None, m2=None, m3=None, and_so_on=None, up_to_21=None) Set this Material's mode flags. Mode strings given are turned 'on'. Those not provided are turned 'off', so mat.setMode() -- without arguments -- turns off all mode flags for Material mat.
|
setNFlares(nflares) Set the number of halo subflares.
|
setNLines(nlines) Set the number of star shaped lines on each halo.
|
setNRings(nrings) Set the number of rings on each halo.
|
setNStars(nstars) Set the number of points in the halo stars.
|
setRGBCol(rgb=None) Set the rgb color triplet. If rgb is None, set the color to black.
|
setSpec(spec) Set the specularity value.
|
setSpecCol(rgb=None) Set the specular color triplet. If rgb is None, set the color to black.
|
setSpecTransp(spectransp) Set the specular transparency.
|
setSubSize(subsize) Set the dimension of subflare, dots and circles.
|
setZOffset(zoffset) Set the artificial offset for faces with this Material.
|
<<< Previous | Home | Next >>> |
Class Material | Up | Module Armature |