def sv_pre_load(scene): clear_system_cache() sv_clean(scene) import sverchok.core.group_handlers as gh gh.NodesStatuses.reset_data() gh.ContextTrees.reset_data() set_first_run(True)
def sv_unregister_modules(modules): clear_system_cache() for m in reversed(modules): if hasattr(m, "unregister"): try: m.unregister() except RuntimeError as e: print("Error unregistering module: {}".format(m.__name__)) print(str(e))
def sv_pre_load(scene): """ This method is called whenever new file is opening THe update order is next: 1. pre_load handler 2. update methods of trees in a file 3. post_load handler 4. evaluate trees from main tree handler """ clear_system_cache() sv_clean(scene) import sverchok.core.group_handlers as gh gh.NodesStatuses.reset_data() gh.GroupContextTrees.reset_data() import sverchok.core.main_tree_handler as mh mh.NodesStatuses.reset_data() mh.ContextTrees.reset_data()
def sv_pre_load(scene): """ This method is called whenever new file is opening THe update order is next: 1. pre_load handler 2. update methods of trees in a file 3. post_load handler Because Sverchok does not fully initialize itself during its initialization it requires throttling of update method of loaded trees """ clear_system_cache() sv_clean(scene) import sverchok.core.group_handlers as gh gh.NodesStatuses.reset_data() gh.ContextTrees.reset_data() set_first_run(True)
def sv_pre_load(scene): clear_system_cache() sv_clean(scene) set_first_run(True)
def sv_unregister_modules(modules): clear_system_cache() for m in reversed(modules): if hasattr(m, "unregister"): # print("Unregistering module: {}".format(m.__name__)) m.unregister()