Home | Trees | Index | Help |
|
---|
Module Texture |
|
The Blender.Texture submodule.
New:MTex
submodule
Texture.BlendModes
, Texture.Mappings
, Texture.Proj
) to use for the values of
some of the new MTex
attributes.
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 | |
---|---|
MTex |
This object links a material to a texture. |
Texture |
This object gives access to Texture-specific data in Blender. |
Function Summary | |
---|---|
Blender Texture or a list of Blender Textures |
Get the Texture object(s) from Blender. |
Blender Texture |
Create a new Texture object. |
Variable Summary | |
---|---|
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 | Mappings : The available 2D texture coordinate mappings for images: |
readonly dictionary | MapTo : Flags for MTex.mapto. |
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 |
---|
Get(name=None)Get the Texture object(s) from Blender.
|
New(name='Tex')Create a new Texture object.
|
Variable Details |
---|
MappingsThe available 2D texture coordinate mappings for images:
|
ProjThe available projections per axis:
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Jul 13 16:50:05 2006 | http://epydoc.sf.net |