Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import bpy
  2.  
  3. #
  4. #CREATE ArFi LAYOUT START
  5. #
  6.  
  7. class armatureFind(bpy.types.Panel):
  8. bl_space_type="VIEW_3D"
  9. bl_region_type="TOOLS"
  10. bl_label="Armature Find"
  11. bl_category="ArFi"
  12.  
  13. def draw(self, context):
  14. layout = self.layout
  15. box = layout.box()
  16.  
  17. box.prop(bpy.context.scene.objects, "active", text="Armature") #Problem1
  18. box.prop(bpy.data.armatures, "rna_type", text="Bone 1", icon="VIEWZOOM") #Problem2
  19. box.prop(bpy.data.armatures, "rna_type", text="Bone 2", icon="VIEWZOOM") #Problem3
  20.  
  21.  
  22. #REGISTER CLASSES
  23.  
  24. def register():
  25. bpy.utils.register_module(__name__)
  26.  
  27. def unregister():
  28. bpy.utils.unregister_moduel(__name__)
  29.  
  30. if __name__ == "__main__":
  31. register()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement