EnumProperty itemlist update !

Hi,

I’m desperately trying to find a way to update the item list in a dropdown box based on an EnumProperty after it’s declaration in a class. I’ve tried all the suggested solutions but none of them is working because they are based on previous Blender versions and API changed since that or simply because it doesn’t work :confused:

I finally tried to use a callback function which returns the item list, it works once when the class is instanciated but the function doesn’t seem to ba called during the UI refresh.

It was so simple with the Blender 2.49 menus, I can’t imagine that it’s so complicated with Blender 2.59. Did I missed something ?

Help required please :frowning:

Thanks Atom, I finally used a menu list instead of the EnumProperty and that solution seems to match my expectations.

Hi enricoceric! I have the same problem: can’t update the EnumProperty items: the callback function is called only once! You say that you resolve that issue by using a menu list. Could you tell me how you did it please? Thanks!

Hi enricoceric! I have the same problem: can’t update the EnumProperty items: the callback function is called only once! You say that you resolve that issue by using a menu list. Could you tell me how you did it please? Thanks!