This module contains utility functions specific to blender but not assosiated with blenders internal data.
Returns the loaded state of the addon.
Parameters: | module_name (string) – The name of the addon and module. |
---|---|
Returns: | (loaded_default, loaded_state) |
Return type: | tuple of booleans |
Disables an addon by name.
Parameters: | module_name (string) – The name of the addon and module. |
---|
Enables an addon by name.
Parameters: | module_name (string) – The name of the addon and module. |
---|---|
Returns: | the loaded module or None on failier. |
Return type: | module |
Sets the addon state based on the user preferences.
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 strigs |
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.
Register a subclass of a blender type in (Panel, Menu, Header, Operator, KeyingSetInfo, RenderEngine).
Note
ValueError exception is raised if the class is not a subclass of a registerable blender class.
Returns a list of valid script paths from the home directory and user preferences.
Accepts any number of string arguments which are joined to make a path.
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.
Return a user resource path (normally from the users home directory).
Parameters: |
|
---|---|
Returns: | a path. |
Return type: | string |