Not done any blender python programming before and decided to start with blender 2.5
I have created a script that I like and would like to have a UI associated with it.
I am using the hello world panel example
import bpy
class OBJECT_PT_hello(bpy.types.Panel):
bl_label = "Hello World Panel"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
bl_context = "object"
def draw(self, context):
layout = self.layout
obj = context.object
row = layout.row()
row.label(text="Hello world!", icon='WORLD_DATA')
row = layout.row()
row.label(text="Active object is: " + obj.name)
row = layout.row()
row.prop(obj, "name")
I would like to add another control that allows me to choose a value between 1 and 360 (or any other number)
how would I do this?
Thanks