cam.utilities.addon_utils#
Fabex ‘addon_utils.py’ © 2012 Vilem Novak
Functions#
|
|
|
Copy a file from source to destination if it does not already exist. |
|
|
|
Checks for any broken computations on load and resets them. |
|
|
Set up units for Fabex. |
|
Module Contents#
- copy_if_not_exists(src, dst)[source]#
Copy a file from source to destination if it does not already exist.
This function checks if the destination file exists. If it does not, the function copies the source file to the destination using a high-level file operation that preserves metadata.
- Parameters:
src (str) – The path to the source file to be copied.
dst (str) – The path to the destination where the file should be copied.
- on_blender_startup(context)[source]#
Checks for any broken computations on load and resets them.
This function verifies the presence of necessary Blender add-ons and installs any that are missing. It also resets any ongoing computations in camera operations and sets the interface level to the previously used level when loading a new file. If the add-on has been updated, it copies the necessary presets from the source to the target directory. Additionally, it checks for updates to the camera plugin and updates operation presets if required.
- Parameters:
context – The context in which the function is executed, typically containing information about the current Blender environment.