This module contains utility functions specific to blender but not associated with blenders internal data.
Returns a list of paths to external files referenced by the loaded .blend file.
Parameters: |
|
---|---|
Returns: | path list. |
Return type: | list of strings |
Register a subclass of a blender type in (bpy.types.Panel, bpy.types.UIList, 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 |
Unload the python class from blender.
If the class has an unregister class method it will be called before unregistering.
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
Create RNA “paths” from given names.
Parameters: |
|
---|---|
Returns: | A triple of three “RNA paths” (most_complete_path, “struct.prop”, “struct.prop:’enum’”). If no enum_name is given, the third element will always be void. |
Return type: | tuple of strings |
returns the env var and falls back to home dir or None
returns the user preference or None
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.
Parameters: | time (number or timedelta object) – time in seconds. |
---|---|
Returns: | the frame. |
Return type: | float |
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.
Return a user resource path (normally from the users home directory).
Parameters: |
|
---|---|
Returns: | a path. |
Return type: | string |