[Bf-python] udpdate enum
Yuniel Castro González
ycastrog at estudiantes.uci.cu
Thu May 26 05:05:29 CEST 2011
Hi for all.
I have an operator that shows an enum(combobox) with default element ('a' in this case), but I need change this value when I execute the operator (change 'a' by 'b' in this case). This is the idea but this operator doesn't satisfy me.
How can I do????
Thanks in advance.
*******************************************
class OBJECT_OT_view_lists(bpy.types.Operator):
bl_idname......
subdivide = [('a','a','a')]
subdivides = EnumProperty(name="Groups", description="Generated groups", items=subdivide)
def draw(self, context):
layout = self.layout
row = layout.row()
row.prop(self, 'subdivides')
def execute(self, context):
subdivide = [('b','b','b')]
return {'FINISHED'}
--
Yuniel
More information about the Bf-python
mailing list