Module Text3d
[hide private]
[frames] | no frames]

Module Text3d

source code

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
       scn = Scene.GetCurrent()    # get current scene
       ob = scn.objects.new(txt)   # create an object from the obdata in the current scene
       ob.makeDisplayList()        # rebuild the display list for this object
       Window.RedrawAll()
Classes [hide private]
  Text3d
This object gives access Blender's Font objects
Functions [hide private]
Blender Text3d
New(name=None)
Create a new Text3d object.
source code
Blender Text3d or a list of Blender Text3d's
Get(name=None)
Get the Text3d object(s) from Blender.
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

New(name=None)

source code 

Create a new Text3d object.

Parameters:
  • name (string) - The name for the new object..
Returns: Blender Text3d
The created Text3d Data object.

Get(name=None)

source code 

Get the Text3d object(s) from Blender.

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