blender-id-mask-tools/__init__.py
2024-01-29 21:11:49 +01:00

42 lines
1,005 B
Python

import bpy
from . panels.panel_options import BakeToIDOptionsPanel
from . panels.panel_advanced import BakeToIDAdvancedMenu
from . operators.bake_to_id_map import BakeToIDMapOperator
from . panels.panel import BakeToIDMapPanel
from . panels.panel_info import BakeToIDInfoPanel
from . properties.bake_to_id import BakeToIDProperties
bl_info = {
"name": "Bake to ID Map",
"author": "iedSoftworks",
"description": "",
"blender": (2, 80, 0),
"category": "Object"
}
classes = (
BakeToIDMapOperator,
BakeToIDMapPanel,
BakeToIDInfoPanel,
BakeToIDOptionsPanel,
BakeToIDAdvancedMenu,
BakeToIDProperties,
)
def register():
for cls in classes:
bpy.utils.register_class(cls)
setattr(bpy.types.Scene, 'bake_to_id_props', bpy.props.PointerProperty(type=BakeToIDProperties))
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
del bpy.types.Scene.bake_to_id_props
if __name__ == "__main__":
register()