def register(): global our_menu_classes debug("Registering sverchok-open3d") settings.register() icons.register() sockets.register() register_nodes() extra_nodes = importlib.import_module(".nodes", "sverchok_open3d") auto_gather_node_classes(extra_nodes) add_nodes_to_sv() menu.register() cats_menu = make_categories() # This would load every sverchok-open3d category straight in the Sv menu menu_category_provider = SvO3CategoryProvider("SVERCHOK_OPEN3D", cats_menu, DOCS_LINK, use_custom_menu=True, custom_menu='NODEVIEW_MT_Open3Dx') register_extra_category_provider(menu_category_provider) #if 'SVERCHOK_OPEN3D' in nodeitems_utils._node_categories: examples.register() # with make_categories() This would load every sverchok-open3d category straight in the Sv menu # our_menu_classes = make_extra_category_menus() show_welcome()
def register(): global our_menu_classes debug("Registering ifcsverchok") register_nodes() extra_nodes = importlib.import_module(".nodes", "ifcsverchok") auto_gather_node_classes(extra_nodes) menu = make_menu() menu_category_provider = SvExCategoryProvider("IFCSVERCHOK", menu) register_extra_category_provider( menu_category_provider ) # if 'IFCSVERCHOK' in nodeitems_utils._node_categories: nodeitems_utils.register_node_categories("IFCSVERCHOK", menu) our_menu_classes = make_extra_category_menus()
def register(): global our_menu_classes debug("Registering sverchok-extra") settings.register() icons.register() register_nodes() extra_nodes = importlib.import_module(".nodes", "sverchok_extra") auto_gather_node_classes(extra_nodes) menu = make_menu() menu_category_provider = SvExCategoryProvider("SVERCHOK_EXTRA", menu) register_extra_category_provider(menu_category_provider) #if 'SVERCHOK_EXTRA' in nodeitems_utils._node_categories: #unregister_node_panels() #nodeitems_utils.unregister_node_categories("SVERCHOK_EXTRA") nodeitems_utils.register_node_categories("SVERCHOK_EXTRA", menu) our_menu_classes = make_extra_category_menus() #register_node_panels("SVERCHOK_EXTRA", menu) show_welcome()
def register(): global topologic_menu_classes debug("Registering toplogicsverchok") #settings.register() #icons.register() register_nodes() extra_nodes = importlib.import_module(".nodes", "topologicsverchok") auto_gather_node_classes(extra_nodes) menu = make_menu() menu_category_provider = SvExCategoryProvider("TOPOLOGICSVERCHOK", menu) register_extra_category_provider( menu_category_provider ) #if 'TOPOLOGICSVERCHOK' in nodeitems_utils._node_categories: #unregister_node_panels() #nodeitems_utils.unregister_node_categories("TOPOLOGICSVERCHOK") nodeitems_utils.register_node_categories("TOPOLOGICSVERCHOK", menu) topologic_menu_classes = make_extra_category_menus()
def register(): global topologic_menu_classes #debug("Registering Topologic") #settings.register() #icons.register() #sockets.register() bpy.utils.register_class(NODEVIEW_MT_EX_TOPOLOGIC_Topologic) register_nodes() extra_nodes = importlib.import_module(".nodes", "topologicsverchok") auto_gather_node_classes(extra_nodes) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryVertex) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryEdge) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryWire) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryFace) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryShell) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryCell) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryCellComplex) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryCluster) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryTopology) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryAperture) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryColor) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryContext) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryDictionary) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryGraph) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryEnergyModel) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryHBModel) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryIFC) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryBlockchain) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryNeo4j) bpy.utils.register_class(NODEVIEW_MT_AddTPSubcategoryAbout) menu = make_menu() menu_category_provider = SvExCategoryProvider("TOPOLOGIC", menu) register_extra_category_provider(menu_category_provider) nodeitems_utils.register_node_categories("TOPOLOGIC", menu)