Created
November 27, 2015 12:57
-
-
Save zeffii/98d436a11dd25054ca18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class MeshAlignVerts(bpy.types.Operator): | |
""" tooltip""" | |
bl_label = "Align verts pos" | |
bl_idname = "mesh.align_verts" | |
bl_options = {'REGISTER', 'UNDO'} | |
def execute(self, context): | |
... | |
return {'FINISHED'} | |
class LayoutDemoPanel(bpy.types.Panel): | |
""" tooltip""" | |
bl_label = "Layout Demo" | |
bl_idname = "SCENE_PT_layout" | |
bl_space_type = 'PROPERTIES' | |
bl_region_type = 'WINDOW' | |
bl_context = "scene" | |
def draw(self, context): | |
layout = self.layout | |
scene = context.scene | |
layout.label(text=" Simple Row:") | |
row = layout.row() | |
row.prop(scene, "frame_start") | |
row = layout.row(align=True) | |
row.operator("render.render") | |
def register(): | |
bpy.utils.register_module(__name__) | |
def unregister(): | |
bpy.utils.unregister_class(__name__) | |
if __name__ == "__main__": | |
register() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment