[Bf-committers] Unregistering UI panel

CoDEmanX codemanx at gmx.de
Fri Oct 26 00:19:42 CEST 2012


It shouldn't add the same panel multiple times, unless you change 
bl_idname or the unregister_class call is bad. Any errors in console?

For manual removal, you can do in pyconsole:
bpy.utils.unregister_class(bpy.types.SCENE_PT_layers) # replace 
SCENE_PT_layers with bl_idname!

Am 25.10.2012 21:48, schrieb Tobias Oelgarte:
> Hello,
>
> i started to write an addon and it needs a lot of testing. But every
> time I'm running my script it adds an additional panel to the UI.
> Unregistering the panel seams only to work if i let my script to be
> loaded as an addon. But how can i remove my added panel(s) if I'm
> running this script for the second time or from another script? Using
> bpy.utils.unregister_class(ClassName) seams not to work in this case,
> because it is treaded as something different.
>
> Greetings from
> Tobias Oelgarte
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list