I write my Blender addon. And I need to redraw the panel and all panels below it in one of operator
execute. So I can write
def redraw_panel(): try: bpy.utils.unregister_class(PanelClass1) bpy.utils.unregister_class(PanelClass2) bpy.utils.unregister_class(PanelClass3) except: pass bpy.utils.register_class(PanelClass1) bpy.utils.register_class(PanelClass2) bpy.utils.register_class(PanelClass3)
But so I have problems adding new panels below (I need to write register and unregister for them in above function).
Is there any other way in Blender api to redraw UI and panels in Blender?