Home | Trees | Indices | Help |
|
---|
|
The main Blender module.
New: Run, UpdateMenus, new options to Get, ShowHelp, SpaceHandlers dictionary. UnpackModes dictionary.Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
constant dictionary |
SpaceHandlers dictionary with space handler types. |
constant dictionary |
UnpackModes dictionary with available unpack modes. |
bool |
bylink True if the current script is being executed as a script link. |
string or int |
event this has three possible uses: script link type or events callback ascii value: |
Blender Object or None; integer (space handlers) |
link for normal script links, 'link' points to the linked Object (can be a scene, object (mesh, camera, lamp), material or world). |
string |
mode Blender's current mode: |
Function Details |
|
Note: (*) these can be set in Blender at the User Preferences window -> File Paths tab. Warning: this function returns None for requested dir paths that have not been set or do not exist in the user's file system. |
|
Load a Blender .blend file or any of the other supported file formats. Supported formats:
Warnings:
Note: for all types except .blend files, this function only works in interactive mode, not in background, following what Blender itself does. |
Save a Blender .blend file with the current program data or export to one of the builtin file formats. Supported formats:
Notes:
|
Note: the script is executed in its own context -- with its own global dictionary -- as if it had been executed from the Text Editor or chosen from a menu. |
Notes:
|
Note: only scripts that save other new scripts in the default or user defined folders need to call this function. |
|
Warning: the use of this function should obviously be avoided, it is available because there are some cases where it can be useful, like in automated tests. For safety, a "quit.blend" file is saved (normal Blender behavior upon exiting) when this function is called, so the data in Blender isn't lost. |
|
Variables Details |
SpaceHandlersdictionary with space handler types.
|
UnpackModesdictionary with available unpack modes.
|
eventthis has three possible uses: script link type or events callback ascii value:
|
linkfor normal script links, 'link' points to the linked Object (can be a scene, object (mesh, camera, lamp), material or world). For space handler script links, 'link' is an integer from the Blender.SpaceHandlers dictionary. For script not running as script links, 'link' is None.
|
modeBlender's current mode:
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon May 19 15:32:19 2008 | http://epydoc.sourceforge.net |