0
$\begingroup$

My requirement is to unregister a class before registering a new class with the same bl_idname. (As far as I understand bl_idname must be unique for each registered class, otherwise blender reports an error saying bl_idname is already used.)

If I try to unregister using the class reference, this doesn't work since the context of registration of earlier class was different.

So my question is: is there a way to unregister a class already registered from some other session? (I have the unique bl_idname, so maybe unregister using the bl_idname?)

$\endgroup$
3
  • $\begingroup$ Maybe related ? blender.stackexchange.com/a/202969/86891 $\endgroup$
    – Gorgious
    Commented Nov 9, 2021 at 8:11
  • $\begingroup$ @Gorgious Not really, the referred post discusses the registered class within bpy.types. I need a class reference that can be used to unregister the class from outside. $\endgroup$
    – loma
    Commented Nov 9, 2021 at 10:53
  • $\begingroup$ Got the solution in the following post: blender.stackexchange.com/a/134416/135191 $\endgroup$
    – loma
    Commented Nov 9, 2021 at 15:33

0

You must log in to answer this question.

Browse other questions tagged .