Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created August 19, 2015 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/874db51a64ec995e37c7 to your computer and use it in GitHub Desktop.
Save zeffii/874db51a64ec995e37c7 to your computer and use it in GitHub Desktop.
import bpy
class LayoutDemoPanel(bpy.types.Panel):
"""Creates a Panel in the scene context of the properties editor"""
bl_label = "Layout Demo"
bl_idname = "SCENE_PT_layout"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_context = "scene"
def draw(self, context):
layout = self.layout
scene = context.scene
# Big render button
row = layout.row()
row.scale_y = 3.0
row.operator("render.render", text='start')
# Big render button
row = layout.row()
row.scale_y = 3.0
row.operator("render.render", text='stop')
def register():
bpy.utils.register_class(LayoutDemoPanel)
def unregister():
bpy.utils.unregister_class(LayoutDemoPanel)
if __name__ == "__main__":
register()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment