Module Texture :: Class MTex
[frames | no frames]

Class MTex


The MTex Object

This object links a material to a texture. It allows the same texture to be used in several different ways.
Method Summary
  clearIpo()
Unlink the ipo from this texture object.
Ipo getIpo()
Get the Ipo associated with this texture object, if any.
  setIpo(ipo)
Link an ipo to this texture object.

Instance Variable Summary
  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
  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
  norfac: Factor by which texture affects normal
  noRGB: Convert texture RGB values to intensity values
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").
  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

clearIpo()

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

getIpo()

Get the Ipo associated with this texture object, if any.
Returns:
the wrapped ipo or None.
           (type=Ipo)

setIpo(ipo)

Link an ipo to this texture object.
Parameters:
ipo - a "texture data" ipo.
           (type=Blender Ipo)

Instance Variable Details

blendmode

Texture blending mode. BlendModes

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

mapping

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

mapto

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

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

norfac

Factor by which texture affects normal

noRGB

Convert texture RGB values to intensity values

object

Object whose space to use when texco is Object
Type:
Blender Object

ofs

Offset to adjust texture space

size

Size to scale texture space

stencil

Stencil mode

tex

The Texture this is linked to.
Type:
Blender Texture

texco

Texture coordinates ("Map input"). See TexCo

varfac

Factor by which texture affects most variables

warpfac

Factor by which texture affects warp

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

Generated by Epydoc 2.1 on Sun Feb 11 13:30:20 2007 http://epydoc.sf.net