Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import bpy
  2.  
  3. class addObjectPrimitives(bpy.types.Panel):
  4.     bl_label = "Add Object"
  5.     bl_space_type = "VIEW_3D"
  6.     bl_region_type = "TOOLS"
  7.     bl_context = "objectmode"
  8.    
  9.     def draw(self, context):
  10.         layout = self.layout
  11.         col = layout.column(align=True)
  12.         col.operator('mesh.primitive_plane_add', text = "blah")
  13.  
  14. bpy.utils.register_class(addObjectPrimitives)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement