remove panel

I can't get rid of my statistics panel. I used restore to factory settings. I did system reload scripts. The script is not in my Scripting area and it also comes back when I open old files.

EDIT

I reinstalled blender, that solved the issue. Just need to sort out my addons now

1 love
Reply
  • Spencer Magnusson replied

    Assuming you are only running the script in the Text Editor -- it will persist so long as the Blender program is open. Close Blender and restart, it should be gone.

    To remove it manually without closing Blender, you have to run the unregister() function included at the bottom of the scripts to unregister the classes and clean up. The system "Reload Scripts" will reload registered add-ons and clear any layouts you add to menus, but it won't unregister the classes. That's why that doesn't work in this case.

    2 loves
  • sheila5 replied

    Well I closed the file and opened another one. But I did that from the blender menu, so that could have been it, I don't know. I had the pc off I think in between sessions. I did have the unregister in the script, but I haven't learned how to use the unregister, do I do that from the manual script menu, the python console?

    1 love
  • Spencer Magnusson replied

    Yeah you'd have to fully close Blender. Like normal add-ons, scripts will persist between files.

    I don't believe I show how to unregister explicitly in the lessons, but you can do it a couple ways:

    • Directly call bpy.utils.unregister_class() in the Python console, and pass your bpy.types class (such as bpy.types.OBJECT_PT_visibility)
    • Edit the code in the text editor to call unregister() instead, and then re-run it:
    if __name__ == "__main__":
    # register() # comment this out, replace it with:
    unregister()
    2 loves