Home | Trees | Index | Help |
|
---|
Module Material ::
Class Material
|
|
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 | |
---|---|
Add a new script link to this Material. | |
Unlink the ipo from this material. | |
Delete script links from this Material. | |
Clear the ith (given by 'index') texture channel of this material. | |
float |
Get the glow factor. |
float |
Get the alpha (transparency) value. |
float |
Get the ambient color blend factor. |
float |
Get the emitting light intensity. |
float |
Get the flare's extra strength. |
int |
Get flare's offset in the seed table. |
float |
Get the ratio: flareSize / haloSize. |
float |
Get power of Fresnel for mirror reflection. |
float |
Get the number of Ray Mirror. |
float |
Get power of Fresnel for transparency. |
float |
Get blending factor for Fresnel. |
int |
Get the seed for random ring dimension and line location in halos. |
float |
Get the halo size. |
int |
Get the hardness of the specularity. |
float |
Get the angular index of refraction for raytrace. |
Ipo |
Get the Ipo associated with this material, if any. |
list of 3 floats |
Get the mirror color triplet sequence. |
int |
Get this Material's mode flags. |
string |
Get the name of this Material object. |
int |
Get the number of halo subflares. |
int |
Get the number of star shaped lines on each halo. |
int |
Get the number of rings on each halo. |
int |
Get the number of points in the halo stars. |
float |
Get amount mirror reflection for raytrace. |
int |
Get amount of inter-reflections calculated maximal. |
float |
Get the reflectivity value. |
list of 3 floats |
Get the rgb color triplet sequence. |
list |
Get a list with this Material's script links of type 'event'. |
float |
Get the specularity value. |
list of 3 floats |
Get the specular color triplet sequence. |
float |
Get the specular transparency. |
float |
Get the dimension of subflare, dots and circles. |
list of MTex |
Get this Material's Texture list. |
int |
Get amount of refractions calculated maximal. |
float |
Get the artificial offset for faces with this Material. |
Inserts keytype values in material ipo at curframe. | |
Set the glow factor. | |
Set the alpha (transparency) value. | |
Set the ambient color blend factor. | |
Set the emitting light intensity. | |
Set the flare's extra strength. | |
Set flare's offset in the seed table. | |
Set the ratio: flareSize / haloSize. | |
Set power of Fresnel for mirror reflection. | |
Set the number of ray mirror | |
Set power of Fresnel for transparency. | |
Set blending factor for Fresnel. | |
Set the seed for random ring dimension and line location in halos. | |
Set the halo size. | |
Set the hardness of the specularity. | |
Set the angular index of refraction for raytrace. | |
Link an ipo to this material. | |
Set the mirror color triplet sequence. | |
Set this Material's mode flags. | |
Set the name of this Material object. | |
Set the number of halo subflares. | |
Set the number of star shaped lines on each halo. | |
Set the number of rings on each halo. | |
Set the number of points in the halo stars. | |
Set amount mirror reflection for raytrace. | |
Set amount mirror reflection for raytrace. | |
Set the reflectivity value. | |
Set the rgb color triplet sequence. | |
Set the specularity value. | |
Set the specular color triplet sequence. | |
Set the specular transparency. | |
Set the dimension of subflare, dots and circles. | |
Assign a Blender Texture object to slot number 'number'. | |
Set amount of refractions calculated maximal. | |
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]. | |
fresnelDepth : Power of Fresnel for mirror reflection. | |
fresnelDepthFac : Blending factor for Fresnel. | |
fresnelTrans : Power of Fresnel for transparency. | |
fresnelTransFac : Blending factor for Fresnel. | |
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]. | |
IOR : Sets the angular index of refraction for raytrace. | |
Blender Ipo | ipo : This Material's ipo. |
mirCol : Mirror color rgb triplet sequence. | |
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]. | |
rayMirr : Amount mirror reflection for raytrace. | |
rayMirrDepth : Amount of inter-reflections calculated maximal. | |
ref : Reflectivity - [0.0, 1.0]. | |
rgbCol : Material's RGB color triplet sequence. | |
spec : Specularity - [0.0, 2.0]. | |
specCol : Specular color rgb triplet sequence. | |
specTrans : Makes specular areas opaque on transparent materials. | |
specTransp : Specular transparency - [0.0, 1.0]. | |
subSize : Dimension of subflares, dots and circles - [0.1, 25.0]. | |
transDepth : Amount of refractions calculated maximal. | |
zOffset : Artificial Z offset for faces - [0.0, 10.0]. |
Method Details |
---|
addScriptLink(text, event)Add a new script link to this Material.
|
clearIpo()Unlink the ipo from this material.
|
clearScriptLinks(links=None)Delete script links from this Material. If no list is specified, all script links are deleted.
|
clearTexture(index)Clear the ith (given by 'index') texture channel of this material.
|
getAdd()Get the glow factor.
|
getAlpha()Get the alpha (transparency) value.
|
getAmb()Get the ambient color blend factor.
|
getEmit()Get the emitting light intensity.
|
getFlareBoost()Get the flare's extra strength.
|
getFlareSeed()Get flare's offset in the seed table.
|
getFlareSize()Get the ratio: flareSize / haloSize.
|
getFresnelMirr()Get power of Fresnel for mirror reflection.
|
getFresnelMirrFac()Get the number of Ray Mirror.
|
getFresnelTrans()Get power of Fresnel for transparency.
|
getFresnelTransFac()Get blending factor for Fresnel.
|
getHaloSeed()Get the seed for random ring dimension and line location in halos.
|
getHaloSize()Get the halo size.
|
getHardness()Get the hardness of the specularity.
|
getIOR()Get the angular index of refraction for raytrace.
|
getIpo()Get the Ipo associated with this material, if any.
|
getMirCol()Get the mirror color triplet sequence.
|
getMode()Get this Material's mode flags.
|
getName()Get the name of this Material object.
|
getNFlares()Get the number of halo subflares.
|
getNLines()Get the number of star shaped lines on each halo.
|
getNRings()Get the number of rings on each halo.
|
getNStars()Get the number of points in the halo stars.
|
getRayMirr()Get amount mirror reflection for raytrace.
|
getRayMirrDepth()Get amount of inter-reflections calculated maximal.
|
getRef()Get the reflectivity value.
|
getRGBCol()Get the rgb color triplet sequence.
|
getScriptLinks(event)Get a list with this Material's script links of type 'event'.
|
getSpec()Get the specularity value.
|
getSpecCol()Get the specular color triplet sequence.
|
getSpecTransp()Get the specular transparency.
|
getSubSize()Get the dimension of subflare, dots and circles.
|
getTextures()Get this Material's Texture list.
|
getTransDepth()Get amount of refractions calculated maximal.
|
getZOffset()Get the artificial offset for faces with this Material.
|
insertIpoKey(keytype)Inserts keytype values in material ipo at curframe. Uses module constants.
|
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.
|
setFresnelMirr(nrmirr)Set power of Fresnel for mirror reflection.
|
setFresnelMirrFac(nrmirr)Set the number of ray mirror
|
setFresnelTrans(nrmirr)Set power of Fresnel for transparency.
|
setFresnelTransFac(nrmirr)Set blending factor for Fresnel.
|
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.
|
setIOR(nrmirr)Set the angular index of refraction for raytrace.
|
setIpo(ipo)Link an ipo to this material.
|
setMirCol(rgb=None)Set the mirror color triplet sequence. If rgb is None, set the color to black.
|
setMode(param, stringN=None)Set this Material's mode flags. Up to 22 mode strings can be given and specify the modes which are turned 'on'. Those not provided are turned 'off', so mat.setMode() -- without arguments -- turns off all mode flags for Material mat. Valid mode strings are "Traceable", "Shadow", "Shadeless", "Wire", "VColLight", "VColPaint", "Halo", "ZTransp", "ZInvert", "HaloRings", "HaloLines", "OnlyShadow", "HaloXAlpha", "HaloStar", "TexFace", "HaloTex", "HaloPuno", "NoMist", "HaloShaded", "HaloFlare", "Radio", "RayMirr", "ZTransp", "RayTransp", "OnlyShadow", "NoMist", "Env" An integer can also be given, which directly sets the mode flag. The Modes dictionary keys can (and should) be added or ORed to specify which modes to turn 'on'. The value returned from getMode() can also be modified and input to this method.
|
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.
|
setRayMirr(nrmirr)Set amount mirror reflection for raytrace.
|
setRayMirrDepth(nrmirr)Set amount mirror reflection for raytrace.
|
setRef(ref)Set the reflectivity value.
|
setRGBCol(rgb=None)Set the rgb color triplet sequence. If rgb is None, set the color to black.
|
setSpec(spec)Set the specularity value.
|
setSpecCol(rgb=None)Set the specular color triplet sequence. 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.
|
setTexture(index, texture, texco, mapto)Assign a Blender Texture object to slot number 'number'.
|
setTransDepth(nrmirr)Set amount of refractions calculated maximal.
|
setZOffset(zoffset)Set the artificial offset for faces with this Material.
|
Class Variable Details |
---|
addGlow factor - [0.0, 1.0]. |
alphaAlpha (translucency) component of the Material - [0.0, 1.0]. |
ambAmbient factor - [0.0, 1.0]. |
BBlue component ofrgbCol - [0.0, 1.0].
|
emitEmitting light intensity - [0.0, 1.0]. |
flareBoostFlare's extra strength - [0.1, 10.0]. |
flareSeedOffset in the seed table - [0, 255]. |
flareSizeFactor the flare is larger than the halo - [0.1, 25.0]. |
fresnelDepthPower of Fresnel for mirror reflection. |
fresnelDepthFacBlending factor for Fresnel. |
fresnelTransPower of Fresnel for transparency. |
fresnelTransFacBlending factor for Fresnel. |
GGreen component ofrgbCol - [0.0, 1.0].
|
haloSeedTo use random values for ring dimension and line location - [0, 255]. |
haloSizeDimension of the halo - [0.0, 100.0]. |
hardHardness of the specularity - [1, 255]. |
IORSets the angular index of refraction for raytrace. |
ipoThis Material's ipo.
|
mirColMirror color rgb triplet sequence. |
modeMode flags as an or'ed int value. See the Modes dictionary keys and descriptions inModes .
|
nameMaterial's name. |
nFlaresNumber of halo subflares - [1, 32]. |
nLinesNumber of star shaped lines on each halo - [0, 250]. |
nRingsNumber of halo rings - [0, 24]. |
nStarsNumber of points on the halo stars - [3, 50]. |
RRed component ofrgbCol - [0.0, 1.0].
|
rayMirrAmount mirror reflection for raytrace. |
rayMirrDepthAmount of inter-reflections calculated maximal. |
refReflectivity - [0.0, 1.0]. |
rgbColMaterial's RGB color triplet sequence. |
specSpecularity - [0.0, 2.0]. |
specColSpecular color rgb triplet sequence. |
specTransMakes specular areas opaque on transparent materials. |
specTranspSpecular transparency - [0.0, 1.0]. |
subSizeDimension of subflares, dots and circles - [0.1, 25.0]. |
transDepthAmount of refractions calculated maximal. |
zOffsetArtificial Z offset for faces - [0.0, 10.0]. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jun 13 15:31:22 2005 | http://epydoc.sf.net |