I want to create a own UI for a add-on which I am writing. The user should have the ability to do different things with this add-on. For example he can choose a cube or a pyramid. If cube or pyramid is choosen the ui will change. Some fields should be hidden and some should be visible.
Okay, first step: Create radio buttons. And now I am stuck :/
As far as I know I need a EnumProperty, which has the attribute items. Items has all the "values" the radio button can have.
Sadly it's not working for me.
I did this:
def draw(self, context): layout = self.layout obj_types_enum = ('0','a','a') obj_type = bpy.props.EnumProperty(items = obj_types_enum) layout.label("Select original form") col = layout.column() col.prop(self, 'obj_type')