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.
PyNone setAlignment(align)
Set the text3d's Alignment value.
PyNone setBevelAmount(bevelresol)
Set the Text3d's bevel resolution value.
PyNone setDefaultResolution(resolu)
Sets Default text Resolution.
PyNone setDrawMode(val)
Set the text3d's drawing mode.
PyNone setExtrudeBevelDepth(ext2)
Set the text3d's ext2 value.
PyNone setgetExtrudeDepth(ext1)
Set the text3d's ext1 value.
PyNone setLineSeparation(sep)
Set the text3d's ext2 value.
  setName(name)
Set the name of this Text3d object.
PyNone setShear(shear)
Set the text3d's shear value.
PyNone setSize(size)
Set the text3d's size value.
PyNone 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
PyNone setWidth(width)
Set the Text3d's width value.
PyNone setXoffset(xof)
Set the text3d's Xoffset value.
PyNone 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:
PyNone

setBevelAmount(bevelresol)

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

setDefaultResolution(resolu)

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

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:
PyNone

setExtrudeBevelDepth(ext2)

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

setgetExtrudeDepth(ext1)

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

setLineSeparation(sep)

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

setName(name)

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

setShear(shear)

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

setSize(size)

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

setSpacing(spacing)

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

setText(name)

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

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:
PyNone

setXoffset(xof)

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

setYoffset(yof)

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

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 Thu Dec 22 22:38:12 2005 http://epydoc.sf.net