Editing the Add-on

Add-on .py files are in the working directory and read by Blender. Below is the structure:

  • __init__.py is used to register add-on classes and modules.

  • ui_panel.py consists of generic bpy.types.Panel built-in Blender Python API classes. Initializing panels.

  • ui_panel_base.py contains panels’ UI bases.

  • utils.py contains utility functions for operations.

  • operators.py contains BakeMaster configuration operators.

  • operator_bake.py for the main baking logic - Bake Operator.

  • labels.py has a BM_Labels class that contains strings used for properties’, operators’ and errors’ descriptions.

Make sure you updated the version key in the bl_info dictionary in the /__init__.py (increase the 3rd item in the tuple by 1):

17...
18bl_info = {
19    "name" : "BakeMaster",
20    "description" : "Bake various PBR-based or Cycles maps with ease and comfort",
21    "author" : "kemplerart",
22    "version" : (1, 0, 0), # (1, 0, 0) -> (1, 0, 1)
23    "blender" : (2, 83, 0),
24    "location" : "View3D > Sidebar > BakeMaster",
25    "warning" : "",
26    "wiki_url": "",
27    "tracker_url": "",
28    "category" : "Material"
29}
30...

Attention

Remember to follow the Style Conventions