Module Text3d :: Class Text3d
[frames | no frames]

Class Text3d


The Text3d object

This object gives access Blender's Font objects
Method Summary
module constant getAlignment()
Get the text3d's alignment value.
float getBevelAmount()
Get the Text3d's bevel resolution value.
float getDefaultResolution()
Return Default text resolution.
tuple of module constants getDrawMode()
Get the drawing mode (3d, front, and/or back) Gets the text3d's drawing modes.
float getExtrudeBevelDepth()
Get the text3d's ext2 value.
float getgetExtrudeDepth()
Get the text3d's ext1 value.
float getLineSeparation()
Get the text3d's ext2 value.
string getName()
Get the name of this Text3d object.
float getShear()
Get the text3d's shear value.
float getSize()
Get the text3d's size value.
float getSpacing()
Get the text3d's spacing value.
string getText()
Get text string for this object
  getUVordco()
Return whether UV coords are used for Texture mapping
float getWidth()
Get the Text3d's width value.
float getXoffset()
Get the text3d's Xoffset value.
float getYoffset()
Get the text3d's Yoffset value.
None setAlignment(align)
Set the text3d's Alignment value.
None setBevelAmount(bevelresol)
Set the Text3d's bevel resolution value.
None setDefaultResolution(resolu)
Sets Default text Resolution.
None setDrawMode(val)
Set the text3d's drawing mode.
None setExtrudeBevelDepth(ext2)
Set the text3d's ext2 value.
None setgetExtrudeDepth(ext1)
Set the text3d's ext1 value.
None setLineSeparation(sep)
Set the text3d's ext2 value.
  setName(name)
Set the name of this Text3d object.
None setShear(shear)
Set the text3d's shear value.
None setSize(size)
Set the text3d's size value.
None setSpacing(spacing)
Set the text3d's spacing value.
  setText(name)
Set the text string in this Text3d object
  setUVordco(val)
Set the font to use UV coords for Texture mapping
None setWidth(width)
Set the Text3d's width value.
None setXoffset(xof)
Set the text3d's Xoffset value.
None setYoffset(yof)
Set the text3d's Yoffset value.

Instance Variable Summary
  filename: The filename of the file loaded into this Text.
  mode: The follow_mode flag: if 1 it is 'on'; if 0, 'off'.
  name: The Text3d name.
  nlines: The number of lines in this Text.

Method Details

getAlignment()

Get the text3d's alignment value. Uses module constants
  • LEFT
  • RIGHT
  • MIDDLE
  • FLUSH
Returns:
module constant

getBevelAmount()

Get the Text3d's bevel resolution value.
Returns:
float

getDefaultResolution()

Return Default text resolution.
Returns:
float

getDrawMode()

Get the drawing mode (3d, front, and/or back) Gets the text3d's drawing modes. Uses module constants
  • DRAW3D : "3D" is set
  • DRAWFRONT : "Front" is set
  • DRAWBACK : "Back" is set
Returns:
tuple of module constants

getExtrudeBevelDepth()

Get the text3d's ext2 value.
Returns:
float

getgetExtrudeDepth()

Get the text3d's ext1 value.
Returns:
float

getLineSeparation()

Get the text3d's ext2 value.
Returns:
float

getName()

Get the name of this Text3d object.
Returns:
string

getShear()

Get the text3d's shear value.
Returns:
float

getSize()

Get the text3d's size value.
Returns:
float

getSpacing()

Get the text3d's spacing value.
Returns:
float

getText()

Get text string for this object
Returns:
string

getUVordco()

Return whether UV coords are used for Texture mapping

getWidth()

Get the Text3d's width value.
Returns:
float

getXoffset()

Get the text3d's Xoffset value.
Returns:
float

getYoffset()

Get the text3d's Yoffset value.
Returns:
float

setAlignment(align)

Set the text3d's Alignment value. Uses module constants
  • LEFT
  • RIGHT
  • MIDDLE
  • FLUSH
Parameters:
align - The new text3d's Alignment value.
           (type=module constant)
Returns:
None

setBevelAmount(bevelresol)

Set the Text3d's bevel resolution value.
Parameters:
bevelresol - The new Curve's bevel resolution value.
           (type=float)
Returns:
None

setDefaultResolution(resolu)

Sets Default text Resolution.
Parameters:
resolu - The new Curve's U-resolution value.
           (type=float)
Returns:
None

setDrawMode(val)

Set the text3d's drawing mode. Uses module constants
  • DRAW3D
  • DRAWFRONT
  • DRAWBACK
Parameters:
val - The Text3d's modes. See getDrawMode for the meaning of the constants.
           (type=single module constant or tuple of module constants)
Returns:
None

setExtrudeBevelDepth(ext2)

Set the text3d's ext2 value.
Parameters:
ext2 - The new text3d's ext2 value.
           (type=float)
Returns:
None

setgetExtrudeDepth(ext1)

Set the text3d's ext1 value.
Parameters:
ext1 - The new text3d's ext1 value.
           (type=float)
Returns:
None

setLineSeparation(sep)

Set the text3d's ext2 value.
Parameters:
sep - The new text3d's separation value.
           (type=float)
Returns:
None

setName(name)

Set the name of this Text3d object.
Parameters:
name - The new name.
           (type=string)
Returns:
None

setShear(shear)

Set the text3d's shear value.
Parameters:
shear - The new text3d's shear value.
           (type=float)
Returns:
None

setSize(size)

Set the text3d's size value.
Parameters:
size - The new text3d's size value.
           (type=float)
Returns:
None

setSpacing(spacing)

Set the text3d's spacing value.
Parameters:
spacing - The new text3d's spacing value.
           (type=float)
Returns:
None

setText(name)

Set the text string in this Text3d object
Parameters:
name - The new text string for this object.
           (type=string)
Returns:
None

setUVordco(val)

Set the font to use UV coords for Texture mapping

setWidth(width)

Set the Text3d's width value.
Parameters:
width - The new text3d's width value.
           (type=float)
Returns:
None

setXoffset(xof)

Set the text3d's Xoffset value.
Parameters:
xof - The new text3d's Xoffset value.
           (type=float)
Returns:
None

setYoffset(yof)

Set the text3d's Yoffset value.
Parameters:
yof - The new text3d's Yoffset value.
           (type=float)
Returns:
None

Instance Variable Details

filename

The filename of the file loaded into this Text.

mode

The follow_mode flag: if 1 it is 'on'; if 0, 'off'.

name

The Text3d name.

nlines

The number of lines in this Text.

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