In short my question is how can I remove/delete an panel/class/operator which: a. I don't know the full name b. and I don't know where it is stored in Blender system.
In other words, how I can undo a script that I run several times... when I only have the script?
Below you could find the script.
more on mocap operation could be found in this tutorial OpenCV facial mocap:
if relevant, some additional details on what I did: I tested a mocap script. Thus, I had to run also the below mentioned script. Which displays a panel on the UI and also a small button on the tool menu.
Currently it doesn't function. I don't know why. So I decided to uninstall then reinstall the scripts later. Reboot.
I run it before from different files. I unregistered and deleted the scripts from all of them, but the operator exists somewhere in the system.
cannot figure out how to remove the panels+actions created by the script.
I tried the following which didn't work.
OpenCvClass = bpy.types.WorkSpaceTool.bl_rna_get_subclass_py('ui_plus.opencv')
bpy.utils.unregister_class(OpenCvClass)
Sorry, I struggle to paste the code properly, this question though relates to the forum's Meta:
import bpy
class OBJECT_MT_OpenCVPanel(bpy.types.WorkSpaceTool):
"""Creates a Panel in the Object properties window"""
bl_label = "OpenCV Animation"
bl_space_type = 'VIEW_3D'
bl_context_mode='OBJECT'
bl_idname = "ui_plus.opencv"
bl_options = {'REGISTER'}
bl_icon = "ops.generic.select_circle"
def draw_settings(context, layout, tool):
row = layout.row()
op = row.operator("wm.opencv_operator", text="Capture", icon="OUTLINER_OB_CAMERA")
def register():
bpy.utils.register_tool(OBJECT_MT_OpenCVPanel, separator=True, group=True)
def unregister():
bpy.utils.unregister_tool(OBJECT_MT_OpenCVPanel)
if __name__ == "__main__":
register()