Home | Trees | Indices | Help |
|
---|
|
The main Blender module.
New: new var eventValue for space handlers, 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. |
__package__ = None
|
|
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: |
int |
eventValue used only for EVENT space handlers, it holds the event 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 |
Update settings in Blender.
|
Retrieve settings from Blender.
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. |
Returns a list of files this blend file uses: (libraries, images, sounds, fonts, sequencer movies).
|
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:
|
Execute the given script.
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. |
Show help for the given script. This is a time-saver ("code-saver") for scripts that need to feature a 'help' button in their GUIs or a 'help' submenu option. With proper documentation strings, calling this function is enough to present a screen with help information plus link and email buttons.
Notes:
|
Update the menus that list registered scripts. This will scan the default and user defined (if available) folder(s) for scripts that have registration data and will make them accessible via menus. Note: only scripts that save other new scripts in the default or user defined folders need to call this function. |
Unpack all files with specified mode.
|
Exit from Blender immediately. 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. |
Sets an undo at the current state.
|
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:
|
eventValueused only for EVENT space handlers, it holds the event 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.0 on Mon Aug 31 23:12:21 2009 | http://epydoc.sourceforge.net |