Beispiel #1
0
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)
Beispiel #2
0
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)