import bpy
class ToolPropsPanel(bpy.types.Panel):
bl_label = "Loli Tool Box"
bl_space_type = "VIEW_3D"
bl_region_type = "TOOL_PROPS"
def draw(self, context):
self.layout.operator("loli.loli", text='Loli Body')
class OBJECT_OT_HelloButton(bpy.types.Operator):
bl_idname = "loli.loli"
bl_label = "Loli"
bpy.utils.register_module(__name__)
參考:
Blender Interface: http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Cookbook/Code_snippets/Interface
沒有留言:
張貼留言