base classes — bpy_struct, ID
Material datablock to defined the appearance of geometric objects for rendering
Index of active texture slot
| Type : | int in [0, 17], default 0 |
|---|
Alpha transparency of the material
| Type : | float in [0, 1], default 0.0 |
|---|
Amount of global ambient color the material receives
| Type : | float in [0, 1], default 0.0 |
|---|
Minnaert darkness
| Type : | float in [0, 2], default 0.0 |
|---|
Diffuse color of the material
| Type : | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0) |
|---|
Power of Fresnel
| Type : | float in [0, 5], default 0.0 |
|---|
Blending factor of Fresnel
| Type : | float in [0, 5], default 0.0 |
|---|
Amount of diffuse reflection
| Type : | float in [0, 1], default 0.0 |
|---|
Blending method of the ramp and the diffuse color
| Type : | enum in [‘MIX’, ‘ADD’, ‘MULTIPLY’, ‘SUBTRACT’, ‘SCREEN’, ‘DIVIDE’, ‘DIFFERENCE’, ‘DARKEN’, ‘LIGHTEN’, ‘OVERLAY’, ‘DODGE’, ‘BURN’, ‘HUE’, ‘SATURATION’, ‘VALUE’, ‘COLOR’, ‘SOFT_LIGHT’, ‘LINEAR_LIGHT’], default ‘MIX’ |
|---|
Blending factor (also uses alpha in Colorband)
| Type : | float in [0, 1], default 0.0 |
|---|
Determines how the ramp maps on the surface
| Type : | enum in [‘SHADER’, ‘ENERGY’, ‘NORMAL’, ‘RESULT’], default ‘SHADER’ |
|---|
| Type : | enum in [‘LAMBERT’, ‘OREN_NAYAR’, ‘TOON’, ‘MINNAERT’, ‘FRESNEL’], default ‘LAMBERT’ |
|---|
Size of diffuse toon area
| Type : | float in [0, 3.14], default 0.0 |
|---|
Smoothness of diffuse toon area
| Type : | float in [0, 1], default 0.0 |
|---|
Amount of light to emit
| Type : | float in [0, inf], default 0.0 |
|---|
Halo settings for the material
| Type : | MaterialHalo, (readonly, never None) |
|---|
Renders material’s faces with an inverted Z buffer (scanline only)
| Type : | boolean, default False |
|---|
Mirror color of the material
| Type : | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0) |
|---|
Gives faces an artificial offset in the Z buffer for Z transparency
| Type : | float in [-inf, inf], default 0.0 |
|---|
Game physics settings
| Type : | MaterialPhysics, (readonly, never None) |
|---|
Type of preview render
| Type : | enum in [‘FLAT’, ‘SPHERE’, ‘CUBE’, ‘MONKEY’, ‘HAIR’, ‘SPHERE_A’], default ‘FLAT’ |
|---|
Raytraced reflection settings for the material
| Type : | MaterialRaytraceMirror, (readonly, never None) |
|---|
Raytraced transparency settings for the material
| Type : | MaterialRaytraceTransparency, (readonly, never None) |
|---|
Oren-Nayar Roughness
| Type : | float in [0, 3.14], default 0.0 |
|---|
Factor to multiply shadow buffer bias with (0 is ignore.)
| Type : | float in [0, 10], default 0.0 |
|---|
Shadow casting alpha, in use for Irregular and Deep shadow buffer
| Type : | float in [0.001, 1], default 0.0 |
|---|
How to draw shadows
| Type : | enum in [‘SHADOW_ONLY_OLD’, ‘SHADOW_ONLY’, ‘SHADOW_ONLY_SHADED’], default ‘SHADOW_ONLY_OLD’ |
|---|
Shadow raytracing bias to prevent terminator problems on shadow boundary
| Type : | float in [0, 0.25], default 0.0 |
|---|
Alpha transparency for specular areas
| Type : | float in [0, 1], default 0.0 |
|---|
Specular color of the material
| Type : | float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0) |
|---|
How hard (sharp) the specular reflection is
| Type : | int in [1, 511], default 0 |
|---|
How intense (bright) the specular reflection is
| Type : | float in [0, 1], default 0.0 |
|---|
Specular index of refraction
| Type : | float in [1, 10], default 0.0 |
|---|
Blending method of the ramp and the specular color
| Type : | enum in [‘MIX’, ‘ADD’, ‘MULTIPLY’, ‘SUBTRACT’, ‘SCREEN’, ‘DIVIDE’, ‘DIFFERENCE’, ‘DARKEN’, ‘LIGHTEN’, ‘OVERLAY’, ‘DODGE’, ‘BURN’, ‘HUE’, ‘SATURATION’, ‘VALUE’, ‘COLOR’, ‘SOFT_LIGHT’, ‘LINEAR_LIGHT’], default ‘MIX’ |
|---|
Blending factor (also uses alpha in Colorband)
| Type : | float in [0, 1], default 0.0 |
|---|
Determines how the ramp maps on the surface
| Type : | enum in [‘SHADER’, ‘ENERGY’, ‘NORMAL’, ‘RESULT’], default ‘SHADER’ |
|---|
| Type : | enum in [‘COOKTORR’, ‘PHONG’, ‘BLINN’, ‘TOON’, ‘WARDISO’], default ‘COOKTORR’ |
|---|
The standard deviation of surface slope
| Type : | float in [0, 0.4], default 0.0 |
|---|
Size of specular toon area
| Type : | float in [0, 1.53], default 0.0 |
|---|
Smoothness of specular toon area
| Type : | float in [0, 1], default 0.0 |
|---|
Strand settings for the material
| Type : | MaterialStrand, (readonly, never None) |
|---|
Subsurface scattering settings for the material
| Type : | MaterialSubsurfaceScattering, (readonly, never None) |
|---|
Texture slots defining the mapping and influence of textures
| Type : | MaterialTextureSlots bpy_prop_collection of MaterialTextureSlot, (readonly) |
|---|
Amount of diffuse shading on the back side
| Type : | float in [0, 1], default 0.0 |
|---|
Method to use for rendering transparency
| Type : | enum in [‘MASK’, ‘Z_TRANSPARENCY’, ‘RAYTRACE’], default ‘MASK’ |
|---|
Material type defining how the object is rendered
| Type : | enum in [‘SURFACE’, ‘WIRE’, ‘VOLUME’, ‘HALO’], default ‘SURFACE’ |
|---|
Allow this material to cast shadows when using approximate ambient occlusion.
| Type : | boolean, default False |
|---|
Allow this material to cast shadows from shadow buffer lamps
| Type : | boolean, default False |
|---|
Makes objects with this material appear invisible, only casting shadows (not rendered)
| Type : | boolean, default False |
|---|
Use cubic interpolation for diffuse values, for smoother transitions
| Type : | boolean, default False |
|---|
Toggle diffuse ramp operations
| Type : | boolean, default False |
|---|
Replaces the object’s base color with color from face assigned image textures
| Type : | boolean, default False |
|---|
Replaces the object’s base alpha value with alpha from face assigned image textures
| Type : | boolean, default False |
|---|
Force this material to render full shading/textures for all anti-aliasing samples
| Type : | boolean, default False |
|---|
Material uses the light group exclusively - these lamps are excluded from other scene lighting
| Type : | boolean, default False |
|---|
Use mist with this material (in world settings)
| Type : | boolean, default False |
|---|
Use shader nodes to render the material
| Type : | boolean, default False |
|---|
Modulate the result with a per-object color
| Type : | boolean, default False |
|---|
Renders shadows as the material’s alpha value, making materials transparent except for shadowed areas
| Type : | boolean, default False |
|---|
Prevents raytraced shadow errors on surfaces with smooth shaded normals (terminator problem)
| Type : | boolean, default False |
|---|
Include this material and geometry that uses it in ray tracing calculations
| Type : | boolean, default False |
|---|
Makes this material insensitive to light or shadow
| Type : | boolean, default False |
|---|
Allows this material to receive shadows
| Type : | boolean, default False |
|---|
Renders this material with zero alpha, with sky background in place (scanline only)
| Type : | boolean, default False |
|---|
Toggle specular ramp operations
| Type : | boolean, default False |
|---|
Use the material’s tangent vector instead of the normal for shading - for anisotropic shading effects
| Type : | boolean, default False |
|---|
Enable/Disable each texture
| Type : | boolean array of 18 items, default (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False) |
|---|
Render material as transparent
| Type : | boolean, default False |
|---|
Allow this object to receive transparent shadows cast through other objects
| Type : | boolean, default False |
|---|
Add vertex colors as additional lighting
| Type : | boolean, default False |
|---|
Replaces object base color with vertex colors (multiplies with ‘texture face’ face assigned textures)
| Type : | boolean, default False |
|---|
Volume settings for the material
| Type : | MaterialVolume, (readonly, never None) |
|---|
Inherited Properties
Inherited Functions
|
References