Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- #
- #CREATE ArFi LAYOUT START
- #
- class armatureFind(bpy.types.Panel):
- bl_space_type="VIEW_3D"
- bl_region_type="TOOLS"
- bl_label="Armature Find"
- bl_category="ArFi"
- def draw(self, context):
- layout = self.layout
- box = layout.box()
- box.prop(bpy.context.scene.objects, "active", text="Armature") #Problem1
- box.prop(bpy.data.armatures, "rna_type", text="Bone 1", icon="VIEWZOOM") #Problem2
- box.prop(bpy.data.armatures, "rna_type", text="Bone 2", icon="VIEWZOOM") #Problem3
- #REGISTER CLASSES
- def register():
- bpy.utils.register_module(__name__)
- def unregister():
- bpy.utils.unregister_moduel(__name__)
- if __name__ == "__main__":
- register()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement