forked from bartvdbraak/blender
5b345524ea
See mailing list posts for details [1][2][3] Addons still need to be fixed; Campbell said he'd do it today. See any of the py files (outside netrender) in this commit for how to do it (it's rather simple). [1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html [2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html [3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
22 lines
493 B
Python
22 lines
493 B
Python
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")
|
|
|