Home | Trees | Indices | Help |
|
---|
|
The Blender.Texture submodule.
New:This module provides access to Texture objects in Blender.
Example:from Blender import Texture,Image,Material footex = Texture.Get('foo') # get texture named 'foo' footex.setType('Image') # make foo be an image texture img = Image.Load('test.png') # load an image footex.image = img # link the image to the texture mat = Material.Get('bar') # get a material mtextures = mat.getTextures() # get a list of the MTex objects for mtex in mtextures: if mtex.tex.type == Texture.Types.IMAGE: print mtex.tex.image.filename # print the filenames of all the # images in textures linked to "bar" mat.setTexture(0, footex) # set the material's first texture # to be our texture
Classes | |
Texture This object gives access to Texture-specific data in Blender. |
|
MTex This object links a material to a texture. |
Functions | |||
Blender Texture |
|
||
Blender Texture or a list of Blender Textures |
|
Variables | |
readonly dictionary |
BlendModes The available texture blending modes: |
readonly dictionary |
ExtendModes Extend, clip, repeat or checker modes for image textures |
readonly dictionary |
Flags The available Texture flags: |
readonly dictionary |
ImageFlags The available image flags for Texture.imageFlags: |
readonly dictionary |
MapTo Flags for MTex.mapto. |
readonly dictionary |
Mappings The available 2D texture coordinate mappings for images: |
readonly dictionary |
Noise Noise types and bases. |
readonly dictionary |
Proj The available projections per axis: |
readonly dictionary |
STypes Texture-type specific data. |
readonly dictionary |
TexCo Flags for MTex.texco. |
readonly dictionary |
Types The available texture types: |
Function Details |
|
|
Variables Details |
BlendModesThe available texture blending modes:
|
ExtendModesExtend, clip, repeat or checker modes for image textures
|
FlagsThe available Texture flags:
|
ImageFlagsThe available image flags for Texture.imageFlags:
|
MapToFlags for MTex.mapto.
|
MappingsThe available 2D texture coordinate mappings for images:
|
NoiseNoise types and bases. SINE, SAW and TRI are only used for marble and wood textures, while the remainder are used for all textures which has a noise basis function (for these textures, the constant should be used with the second noise basis setting).
|
ProjThe available projections per axis:
|
STypesTexture-type specific data. Depending on the value of Texture.type, certain groups will make sense. For instance, when a texture is of type CLOUD, the CLD_xxx stypes can be used. Note that the first value in each group is the default.
|
TexCoFlags for MTex.texco.
|
TypesThe available texture types:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon May 19 15:32:20 2008 | http://epydoc.sourceforge.net |