This module contains utility functions specific to blender but not assosiated with blenders internal data.
Returns a list of paths to external files referenced by the loaded .blend file.
Parameters: | absolute (boolean) – When true the paths returned are made absolute. |
---|---|
Returns: | path list. |
Return type: | list of strings |
Load scripts and run each modules register function.
Parameters: |
|
---|
Load all modules in a path and return them as a list.
Parameters: |
|
---|---|
Returns: | all loaded modules. |
Return type: | list |
Returns a list of paths for a specific preset.
Parameters: | subdir (string) – preset subdirectory (must not be an absolute path). |
---|---|
Returns: | script paths. |
Return type: | list |
Run this after creating new script paths to update sys.path
Register a subclass of a blender type in (bpy.types.Panel, bpy.types.Menu, bpy.types.Header, bpy.types.Operator, bpy.types.KeyingSetInfo, bpy.types.RenderEngine).
If the class has a register class method it will be called before registration.
Note
ValueError exception is raised if the class is not a subclass of a registerable blender class.
Return the base path for storing system files.
Parameters: |
|
---|---|
Returns: | the resource path (not necessarily existing). |
Return type: | string |
Returns a list of valid script paths.
Parameters: |
|
---|---|
Returns: | script paths. |
Return type: | list |
Returns an SMPTE formatted string from the frame: “HH:MM:SS:FF”.
If fps and fps_base are not given the current scene is used.
Returns an SMPTE formatted string from the time in seconds: “HH:MM:SS:FF”.
If the fps is not given the current scene is used.
Unload the python class from blender.
If the class has an unregister class method it will be called before unregistering.
Return a user resource path (normally from the users home directory).
Parameters: |
|
---|---|
Returns: | a path. |
Return type: | string |