Module Texture :: Class MTex

Class MTex

source code

The MTex Object

This object links a material to a texture. It allows the same texture to be used in several different ways.

Instance Methods
Ipo
getIpo()
Get the Ipo associated with this texture object, if any.
source code
 
setIpo(ipo)
Link an ipo to this texture object.
source code
 
clearIpo()
Unlink the ipo from this texture object.
source code
Instance Variables
  blendmode
Texture blending mode.
  col
Color that the texture blends with
  colfac
Factor by which texture affects color
  correctNor
Correct normal mapping for Texture space and Object space
  dispfac
Factor by which texture affects displacement
  dvar
Value that the texture blends with when not blending colors
  fromDupli
Dupli's instanced from verts, faces or particles, inherit texture coordinate from their parent
  fromOrig
Dupli's derive their object coordinates from the original objects transformation
  mapping
Mapping of texture coordinates (flat, cube, etc.).
  mapto
"Map to" field of texture.
  mtAlpha
How texture maps to alpha value
  mtAmb
How texture maps to ambient value
  mtCmir
How texture maps to mirror color
  mtCol
How texture maps to color
  mtCsp
How texture maps to specularity color
  mtDisp
How texture maps to displacement
  mtEmit
How texture maps to emit value
  mtHard
How texture maps to hardness
  mtNor
How texture maps to normals
  mtRayMir
How texture maps to RayMir value
  mtRef
How texture maps to reflectivity
  mtSpec
How texture maps to specularity
  mtTranslu
How texture maps to translucency
  mtWarp
How texture maps to warp
  neg
Negate texture values mode
  noRGB
Convert texture RGB values to intensity values
  norfac
Factor by which texture affects normal
Blender Object object
Object whose space to use when texco is Object
  ofs
Offset to adjust texture space
  size
Size to scale texture space
  stencil
Stencil mode
Blender Texture tex
The Texture this is linked to.
  texco
Texture coordinates ("Map input").
string uvlayer
The name of the UV Layer this texture is mapped to (when left blank uses render layer)
  varfac
Factor by which texture affects most variables
  warpfac
Factor by which texture affects warp
  xproj
Projection of X axis to Texture space.
  yproj
Projection of Y axis to Texture space.
  zproj
Projection of Z axis to Texture space.
Method Details

getIpo()

source code 
Get the Ipo associated with this texture object, if any.
Returns: Ipo
the wrapped ipo or None.

setIpo(ipo)

source code 
Link an ipo to this texture object.
Parameters:
  • ipo (Blender Ipo) - a "texture data" ipo.

clearIpo()

source code 
Unlink the ipo from this texture object.
Returns:
True if there was an ipo linked or False otherwise.

Instance Variable Details

blendmode

Texture blending mode. BlendModes

mapping

Mapping of texture coordinates (flat, cube, etc.). Mappings

mapto

"Map to" field of texture. OR'd values of MapTo

texco

Texture coordinates ("Map input"). See TexCo

xproj

Projection of X axis to Texture space. Proj

yproj

Projection of Y axis to Texture space. Proj

zproj

Projection of Z axis to Texture space. Proj