Module Text3d
[frames | no frames]

Module Text3d

The Blender.Text3d submodule.

Text3d Objects

This module provides access to Font objects in Blender.

Example:
 import Blender
 from Blender import Curve, Object, Scene, Text3d
 #
 txt = Text3d.New("MyText")  # create a new Text3d object called MyText
 cur = Scene.getCurrent()    # get current scene
 ob = Object.New('Text')     # make curve object
 ob.link(txt)                # link curve data with this object
 cur.link(ob)                # link object into scene
 ob.makeDisplayList()        # rebuild the display list for this object
 Window.RedrawAll()

Classes
Text3d This object gives access Blender's Font objects

Function Summary
Blender Text3d or a list of Blender Text3ds Get(name)
Get the Text3d object(s) from Blender.
Blender Text3d New(name)
Create a new Text3d object.

Function Details

Get(name=None)

Get the Text3d object(s) from Blender.
Parameters:
name - The name of the Text3d object.
           (type=string)
Returns:
It depends on the 'name' parameter:
  • (name): The Text3d object with the given name;
  • (): A list with all Text3d objects in the current scene.

           (type=Blender Text3d or a list of Blender Text3ds)

New(name=None)

Create a new Text3d object.
Parameters:
name - The name for the new object..
           (type=string)
Returns:
The created Text3d Data object.
           (type=Blender Text3d)

Generated by Epydoc 2.1 on Mon Jun 13 15:31:23 2005 http://epydoc.sf.net