Esempio n. 1
0
def init_bookkeeping(sv_name):

    from sverchok.core import node_defaults
    from sverchok.utils import ascii_print, auto_gather_node_classes

    sverchok.data_structure.SVERCHOK_NAME = sv_name
    ascii_print.show_welcome()
    node_defaults.register_defaults()
    auto_gather_node_classes()
Esempio n. 2
0
def register():
    for m in imported_modules + node_list:
        if hasattr(m, "register"):
            m.register()
    # this is used to access preferences, should/could be hidden
    # in an interface
    data_structure.SVERCHOK_NAME = __name__
    print("** version: ", bl_info['version']," **")
    print("** Have a nice day with sverchok  **\n")
    ascii_print.logo()
    node_defaults.register_defaults()
    auto_gather_node_classes()
    if reload_event:
        data_structure.RELOAD_EVENT = True
        print("Sverchok is reloaded, press update")
Esempio n. 3
0
def register():
    for m in imported_modules + node_list:
        if hasattr(m, "register"):
            m.register()
    # this is used to access preferences, should/could be hidden
    # in an interface
    data_structure.SVERCHOK_NAME = __name__
    print("** version: ", bl_info['version']," **")
    print("** Have a nice day with sverchok  **\n")
    ascii_print.logo()
    node_defaults.register_defaults()

    if reload_event:
        data_structure.RELOAD_EVENT = True
        print("Sverchok is reloaded, press update")
Esempio n. 4
0
def register():
    for m in imported_modules + node_list:
        if m.__name__ != "sverchok.menu":
            if hasattr(m, "register"):
                #print("Registering module: {}".format(m.__name__))
                m.register()
    # this is used to access preferences, should/could be hidden
    # in an interface
    data_structure.SVERCHOK_NAME = __name__
    print("** version: ", get_version_string(), " **")
    print("** Have a nice day with sverchok  **\n")
    ascii_print.logo()
    node_defaults.register_defaults()
    auto_gather_node_classes()
    # We have to register menu module after all nodes are registered
    menu.register()
    if reload_event:
        data_structure.RELOAD_EVENT = True
        menu.reload_menu()
        print("Sverchok is reloaded, press update")
Esempio n. 5
0
def register():
    for m in imported_modules + node_list:
        if m.__name__ != "sverchok.menu":
            if hasattr(m, "register"):
                #print("Registering module: {}".format(m.__name__))
                m.register()
    # this is used to access preferences, should/could be hidden
    # in an interface
    data_structure.SVERCHOK_NAME = __name__
    print("** version: ", get_version_string()," **")
    print("** Have a nice day with sverchok  **\n")
    ascii_print.logo()
    node_defaults.register_defaults()
    auto_gather_node_classes()
    # We have to register menu module after all nodes are registered
    menu.register()
    if reload_event:
        data_structure.RELOAD_EVENT = True
        menu.reload_menu()
        print("Sverchok is reloaded, press update")