def register(): #bpy.utils.register_module(__name__) #import the relevant modules #from . import d3classes, odcutils, crown, margin, bridge, splint, implant, panel, help, flexible_tooth, bracket_placement, denture_base, occlusion, ortho, curve_partition, articulator, splint_landmark_fns # , odcmenus, bgl_utils import healing_abutment, model_work, tracking, import_export, splint_booleans, splint_face_bow import meta_modelling, model_labels, splint_occlusal_surfaces, incremental_save, articulator_handlers, plane_cut, d3splint_view_presets import composite_buttons, vertical_base, insertion_axis, reports from .cut_mesh.op_hole_filler import hole_filler_modal from .cut_mesh.op_splint_outline import splint_outline_modal #register them d3classes.register() odcutils.register() curve_partition.register() splint.register() articulator.register() #help.register() #denture_base.register() occlusion.register() splint_landmark_fns.register() splint_booleans.register() model_work.register() import_export.register() splint_face_bow.register() meta_modelling.register() model_labels.register() plane_cut.register() hole_filler_modal.register() splint_outline_modal.register() splint_occlusal_surfaces.register() incremental_save.register() insertion_axis.register() reports.register() articulator_handlers.register() d3splint_view_presets.register() composite_buttons.register() vertical_base.register() panel.register() #register this module bpy.utils.register_class(D3SplintAddonPreferences) bpy.utils.register_class(D3Splint_OT_general_preferences) bpy.utils.register_class(D3Splint_OT_addon_prefs) tracking.register(bl_info) addon_updater_ops.register(bl_info) bpy.app.handlers.load_post.append(load_post_method) bpy.app.handlers.save_pre.append(save_pre_method) bpy.app.handlers.frame_change_pre.append(pause_playback)
def register(): #bpy.utils.register_module(__name__) #import the relevant modules #from . import classes, odcutils, crown, margin, bridge, splint, implant, panel, help, flexible_tooth, bracket_placement, denture_base, occlusion, ortho # , odcmenus, bgl_utils #register them classes.register() odcutils.register() crown.register() implant.register() margin.register() bridge.register() splint.register() help.register() flexible_tooth.register() bracket_placement.register() denture_base.register() panel.register() occlusion.register() ortho.register() #odcmenus.register() #bgl_utils.register() found = False try: imp.find_module('Crypto') #found = True except ImportError: found = False #from . if found: print('found the Crypto module, importing CDT files supported') import cdt cdt.register() else: print('The Crypto module was not found! CDT not supported') #register this module print('REGISERESTED THE ADDON PREFERENCES?') bpy.utils.register_class(ODCAddonPreferences) bpy.utils.register_class(OPENDENTAL_OT_addon_prefs_odc) bpy.app.handlers.load_post.append(load_post_method) bpy.app.handlers.save_pre.append(save_pre_method) bpy.app.handlers.frame_change_pre.append(pause_playback)
def register(): # bpy.utils.register_module(__name__) # import the relevant modules # from . import classes, odcutils, crown, margin, bridge, splint, implant, panel, help, flexible_tooth, bracket_placement, denture_base # , crown, implant, splint, panel, odcmenus, bgl_utils # register them classes.register() odcutils.register() crown.register() implant.register() margin.register() bridge.register() splint.register() help.register() flexible_tooth.register() bracket_placement.register() denture_base.register() panel.register() # odcmenus.register() # bgl_utils.register() found = False try: imp.find_module("Crypto") # found = True except ImportError: found = False # from . if found: print("found the Crypto module, importing CDT files supported") import cdt cdt.register() else: print("The Crypto module was not found! CDT not supported") # register this module print("REGISERESTED THE ADDON PREFERENCES?") bpy.utils.register_class(ODCAddonPreferences) bpy.utils.register_class(OPENDENTAL_OT_addon_prefs_odc) bpy.app.handlers.load_post.append(load_post_method) bpy.app.handlers.save_pre.append(save_pre_method)