Home | Trees | Index | Help |
|
---|
Module Text :: Class Text |
|
Method Summary | |
---|---|
list of strings |
Retrieve the contents of this Text buffer as a list of strings. |
Clear this Text object: its buffer becomes empty. | |
string |
Get the filename of the file loaded into this Text object. |
string |
Get the name of this Text object. |
int |
Get the number of lines in this Text buffer. |
Set this Text's attributes. | |
Set the name of this Text object. | |
Append a string to this Text buffer. |
Instance Variable Summary | |
---|---|
bool | fakeUser : When set to True, this datablock wont be removed, even if nothing is
using it. |
filename : The filename of the file loaded into this Text. | |
string or None | lib : path to the blend file this datablock is stored in (readonly). |
mode : The follow_mode flag: if 1 it is 'on'; if 0, 'off'. | |
string | name : unique name within each blend file. |
nlines : The number of lines in this Text. | |
IDGroup |
properties : Returns an IDGroup reference to this datablocks's ID
Properties. |
bool | tag : A temporary tag that to flag data as being used within a loop. |
int | users : The number of users this datablock has. |
Method Details |
---|
asLines()Retrieve the contents of this Text buffer as a list of strings.
|
clear()Clear this Text object: its buffer becomes empty. |
getFilename()Get the filename of the file loaded into this Text object.
|
getName()Get the name of this Text object.
|
getNLines()Get the number of lines in this Text buffer.
|
set(attribute, value)Set this Text's attributes.
|
setName(name)Set the name of this Text object.
|
write(data)Append a string to this Text buffer.
|
Instance Variable Details |
---|
fakeUserWhen set to True, this datablock wont be removed, even if nothing is using it. All data has this disabled by default except for Actions.
|
filenameThe filename of the file loaded into this Text. |
libpath to the blend file this datablock is stored in (readonly). lib will be None unless you are using external blend files with (File, Append/Link) Note: the path may be relative, to get the full path useBlender.sys.expandpath
|
modeThe follow_mode flag: if 1 it is 'on'; if 0, 'off'. |
nameunique name within each blend file. The name is case sensitive and 21 characters maximum length. Note: a blend file may have naming collisions when external
library data is used, be sure to check the value of
|
nlinesThe number of lines in this Text. |
propertiesReturns anIDGroup reference to this datablocks's ID
Properties.
|
tagA temporary tag that to flag data as being used within a loop. always set all tags to True or False before using since blender uses this flag for its own internal operations.
|
usersThe number of users this datablock has. (readonly) Zero user datablocks are de-allocated after reloading and saving.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu May 10 20:31:59 2007 | http://epydoc.sf.net |