Blender Documentation Volume II - Reference Guide: Last modified March 29 2004 S68 | ||
---|---|---|
<<< Previous | Python API Reference | Next >>> |
This module provides access to Text objects in Blender.
Example:
import Blender from Blender import Text # txt = Text.New("MyText") # create a new Text object print Text.Get() # current list of Texts in Blender txt.write("Appending some ") # appending text txt.write("text to my\n") # '\n' inserts new-line markers txt.write("text buffer.") print txt.asLines() # retrieving the buffer as a list of lines Text.unlink(txt) # removing a Text object |
Function Summary | ||
Blender Text or a list of Blender Texts | Get(name) Get the Text object(s) from Blender. | |
Blender Text | Load(filename) Load a file into a Blender Text object. | |
Blender Text | New(name, follow_cursor) Create a new Text object. | |
| unlink(textobj) Unlink (remove) the given Text object from Blender. |
Get(name=None) Get the Text object(s) from Blender.
|
Load(filename) Load a file into a Blender Text object.
|
<<< Previous | Home | Next >>> |
Module Text | Up | Class Text |