string
|
getName()
Get the name of this Material object. |
source code
|
|
|
|
Ipo
|
|
|
|
|
|
|
|
int
|
|
|
|
list of 3 floats
|
|
|
|
list of 3 floats
|
|
|
|
list of 3 floats
|
|
|
|
float
|
getAlpha()
Get the alpha (transparency) value. |
source code
|
|
|
|
float
|
getAmb()
Get the ambient color blend factor. |
source code
|
|
|
|
float
|
getEmit()
Get the emitting light intensity. |
source code
|
|
|
|
float
|
|
|
|
float
|
|
|
|
float
|
getSpecTransp()
Get the specular transparency. |
source code
|
|
|
|
|
setSpecShader(specShader)
Set the material's specular shader from one of the shaders in
Material.Shaders dict. |
source code
|
|
int
|
getSpecShader(specShader)
Get the material's specular shader from one of the shaders in
Material.Shaders dict. |
source code
|
|
|
|
int
|
getDiffuseShader()
Get the material's diffuse shader from one of the shaders in
Material.Shaders dict. |
source code
|
|
|
|
float
|
getRoughness()
Get the material's roughness (applies to the "Oren
Nayar" Diffuse Shader only) |
source code
|
|
|
setSpecSize(diffuseSize)
Set the material's size of diffuse area (applies to the
"Toon" Diffuse Shader only) |
source code
|
|
float
|
getSpecSize()
Get the material's size of diffuse area (applies to the
"Toon" Diffuse Shader only) |
source code
|
|
|
setSpecSmooth(specSmooth)
Set the material's smoothing of specular area (applies to the
"Toon" Specular Shader only) |
source code
|
|
float
|
getSpecSmooth()
Get the material's smoothing of specular area (applies to the
"Toon" Specular Shader only) |
source code
|
|
|
|
float
|
getDiffuseSmooth()
Get the material's smoothing of diffuse area (applies to the
"Toon" Diffuse Shader only) |
source code
|
|
|
|
float
|
getDiffuseDarkness()
Get the material's diffuse darkness (applies to the
"Minnaert" Diffuse Shader only) |
source code
|
|
|
|
float
|
getRefracIndex()
Get the material's Index of Refraction (applies to the
"Blinn" Specular Shader only) |
source code
|
|
|
setRms(rms)
Set the material's standard deviation of surface slope (applies to
the "WardIso" Specular Shader only) |
source code
|
|
float
|
getRms()
Get the material's standard deviation of surface slope (applies to
the "WardIso" Specular Shader only) |
source code
|
|
|
setFilter(filter)
Set the material's amount of filtering when transparent raytrace
is enabled |
source code
|
|
float
|
getFilter()
Get the material's amount of filtering when transparent raytrace
is enabled |
source code
|
|
|
|
float
|
getTranslucency()
Get the material's amount of diffuse shading of the back side |
source code
|
|
float
|
|
|
|
float
|
getZOffset()
Get the artificial offset for faces with this Material. |
source code
|
|
|
|
float
|
|
|
|
int
|
getHaloSeed()
Get the seed for random ring dimension and line location in
halos. |
source code
|
|
|
|
float
|
getFlareSize()
Get the ratio: flareSize / haloSize. |
source code
|
|
|
|
int
|
getFlareSeed()
Get flare's offset in the seed table. |
source code
|
|
|
|
float
|
getFlareBoost()
Get the flare's extra strength. |
source code
|
|
|
|
float
|
getSubSize()
Get the dimension of subflare, dots and circles. |
source code
|
|
|
|
int
|
getHardness()
Get the hardness of the specularity. |
source code
|
|
|
|
int
|
getNFlares()
Get the number of halo subflares. |
source code
|
|
|
|
int
|
getNStars()
Get the number of points in the halo stars. |
source code
|
|
|
|
int
|
getNLines()
Get the number of star shaped lines on each halo. |
source code
|
|
|
|
int
|
getNRings()
Get the number of rings on each halo. |
source code
|
|
|
|
float
|
getRayMirr()
Get amount mirror reflection for raytrace. |
source code
|
|
|
|
int
|
getRayMirrDepth()
Get amount of inter-reflections calculated maximal. |
source code
|
|
|
|
float
|
getFresnelMirr()
Get power of Fresnel for mirror reflection. |
source code
|
|
|
|
float
|
getFresnelMirrFac()
Get the number of Ray Mirror. |
source code
|
|
|
|
float
|
getIOR()
Get the angular index of refraction for raytrace. |
source code
|
|
|
|
int
|
getTransDepth()
Get amount of refractions calculated maximal. |
source code
|
|
|
|
float
|
getFresnelTrans()
Get power of Fresnel for transparency. |
source code
|
|
|
|
float
|
getFresnelTransFac()
Get blending factor for Fresnel. |
source code
|
|
|
|
|
setTexture(index,
texture,
texco,
mapto)
Assign a Blender Texture object to slot number 'number'. |
source code
|
|
|
|
list of MTex
|
|
list
|
|
|
|
|
|
Material
|
|
float
|
B
Diffuse color (rgbCol) blue component.
|
float
|
G
Diffuse color (rgbCol) green component.
|
float
|
IOR
Angular index of refraction for raytrace.
|
float
|
R
Diffuse color (rgbCol) red component.
|
float
|
add
Strength of the add effect.
|
float
|
alpha
Alpha (translucency) component of the material.
|
float
|
amb
Amount of global ambient color material receives.
|
list
|
colorband
Material colorband, a list of colors, each color a list of 5
floats [0 - 1], [r,g,b,a,pos].
|
list
|
colorbandDiffuse
Material colorband, a list of colors, each color a list of 5
floats [0 - 1], [r,g,b,a,pos].
|
list
|
colorbandSpecular
Material colorband, a list of colors, each color a list of 5
floats [0 - 1], [r,g,b,a,pos].
|
float
|
diffuseDarkness
Material's diffuse darkness ("Minnaert" diffuse shader
only).
|
int
|
diffuseShader
Diffuse shader type (see Shaders).
|
float
|
diffuseSize
Material's diffuse area size ("Toon" diffuse shader
only).
|
float
|
diffuseSmooth
Material's diffuse area smoothing ("Toon" diffuse shader
only).
|
float
|
emit
Amount of light the material emits.
|
bool
|
enableSSS
If True, subsurface scattering will be rendered on this
material.
|
bool
|
fakeUser
When set to True, this datablock wont be removed, even if nothing
is using it.
|
float
|
filter
Amount of filtering when transparent raytrace is enabled.
|
float
|
flareBoost
Flare's extra strength.
|
int
|
flareSeed
Offset in the flare seed table.
|
float
|
flareSize
Ratio of flare size to halo size.
|
float
|
fresnelDepth
Power of Fresnel for mirror reflection.
|
float
|
fresnelDepthFac
Blending factor for Fresnel mirror.
|
float
|
fresnelTrans
Power of Fresnel for transparency.
|
float
|
fresnelTransFac
Blending factor for Fresnel transparency.
|
float
|
glossMir
Amount of reflection glossy.
|
float
|
glossTra
Amount of refraction glossy.
|
int
|
haloSeed
Randomizes halo ring dimension and line location.
|
float
|
haloSize
Dimension of the halo.
|
int
|
hard
Hardness of the specularity.
|
Blender Ipo
|
ipo
Material Ipo data.
|
string or None
|
lib
path to the blend file this datablock is stored in (readonly).
|
Group or None
|
lightGroup
Limits lights that affect this material to a group.
|
float
|
mirB
Mirror color (mirCol) blue component.
|
list of 3 floats
|
mirCol
Mirror RGB color triplet.
|
float
|
mirG
Mirror color (mirCol) green component.
|
float
|
mirR
Mirror color (mirCol) red component.
|
int
|
mode
Mode mode bitfield.
|
int
|
nFlares
Number of subflares with halo.
|
int
|
nLines
Number of star-shaped lines with halo.
|
int
|
nRings
Number of rings with halo.
|
int
|
nStars
Number of star points with halo.
|
string
|
name
unique name within each blend file.
|
list of 2 floats
|
oopsLoc
Material OOPs location.
|
int
|
oopsSel
Material OOPs selection flag.
|
IDGroup
|
properties
Returns an IDGroup reference to this datablocks's ID
Properties.
|
float
|
rayMirr
Mirror reflection amount for raytrace.
|
int
|
rayMirrDepth
Amount of raytrace inter-reflections.
|
float
|
rbFriction
Rigid Body Friction coefficient.
|
float
|
rbRestitution
Rigid Body Friction restitution.
|
float
|
ref
Amount of reflections (for shader).
|
float
|
refracIndex
Material's Index of Refraction (applies to the "Blinn"
Specular Shader only.
|
list of 3 floats
|
rgbCol
Diffuse RGB color triplet.
|
float
|
rms
Material's surface slope standard deviation ("WardIso"
specular shader only).
|
float
|
roughness
Material's roughness ("Oren Nayar" diffuse shader
only).
|
int
|
sampGlossTra
Refraction glossy samples.
|
int
|
sampGloss_mir
Reflection glossy samples.
|
float
|
shadAlpha
Shadow Alpha for irregular shadow buffer.
|
float
|
spec
Degree of specularity.
|
float
|
specB
Specular color (specCol) blue component.
|
list of 3 floats
|
specCol
Specular RGB color triplet.
|
float
|
specG
Specular color (specCol) green component.
|
float
|
specR
Specular color (specCol) red component.
|
int
|
specShader
Specular shader type.
|
float
|
specSize
Material's specular area size ("Toon" specular shader
only).
|
float
|
specSmooth
Sets the smoothness of specular toon area.
|
float
|
specTransp
Makes specular areas opaque on transparent materials.
|
float
|
sssB
SubSsurface scattering color (sssCol)
blue component.
|
float
|
sssBack
Back scattering weight Value is clamped to the range
[0.0,10.0].
|
list of 3 floats
|
sssCol
SubSsurface scattering RGB color triplet.
|
float
|
sssColorBlend
Blend factor for SSS colors.
|
float
|
sssError
Error allowance for the calculation (a low value is slower).
|
float
|
sssFront
Front scattering weight.
|
float
|
sssG
SubSsurface scattering color (sssCol)
green component.
|
float
|
sssIOR
Refraction index.
|
float
|
sssR
SubSsurface scattering color (sssCol)
red component.
|
float
|
sssRadiusBlue
Mean blue scattering path length.
|
float
|
sssRadiusGreen
Mean green scattering path length.
|
float
|
sssRadiusRed
Mean red scattering path length.
|
bool
|
sssScale
If True, subsurface scattering will be rendered on this
material.
|
float
|
sssTextureScatter
Texture scattering factor.
|
float
|
subSize
Dimension of subflares, dots and circles.
|
bool
|
tag
A temporary tag that to flag data as being used within a loop.
|
int
|
transDepth
calculated maximal.
|
float
|
translucency
Amount of diffuse shading of the back side.
|
int
|
users
The number of users this datablock has.
|
string
|
uvlayer
The uv layer name to use, when UV mapping is enabled.
|
float
|
zOffset
Artificial offset in the Z buffer (for Ztransp option).
|