Page Menu
Home
Search
Configure Global Search
Log In
Files
F11032
poselib.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Jason van Gumster (thefallenweeble)
Nov 13 2013, 2:20 PM
Size
1 KB
Subscribers
None
poselib.diff
View Options
Index: release/scripts/ui/properties_data_armature.py
===================================================================
--- release/scripts/ui/properties_data_armature.py (revision 31336)
+++ release/scripts/ui/properties_data_armature.py (working copy)
@@ -153,6 +153,34 @@
sub.operator("pose.group_deselect", text="Deselect")
+# This is slapdash, but at least it mostly works as a start.
+class DATA_PT_pose_libraries(ArmatureButtonsPanel, bpy.types.Panel):
+ bl_label = "Pose Libraries"
+
+ @classmethod
+ def poll(cls, context):
+ return (context.object and context.object.type == 'ARMATURE' and context.object.pose)
+
+ def draw(self, context):
+ layout = self.layout
+
+ ob = context.object
+ pose = ob.pose
+ poselib = ob.pose_library
+
+ split = layout.split(percentage=0.65)
+ split.template_ID(ob, "pose_library", new="poselib.pose_add")
+
+ if poselib:
+ posemark = poselib.pose_markers[0]
+ row = layout.row()
+ row.template_list(poselib, "pose_markers", posemark, "frame", rows=2)
+ col = row.column(align=True)
+ col.active = (ob.proxy is None)
+ col.operator("poselib.pose_add", icon='ZOOMIN', text="")
+ col.operator("poselib.pose_remove", icon='ZOOMOUT', text="")
+
+
# TODO: this panel will soon be depreceated too
class DATA_PT_ghost(ArmatureButtonsPanel, bpy.types.Panel):
bl_label = "Ghost"
@@ -293,4 +321,4 @@
pass
if __name__ == "__main__":
- register()
+ register()
\ No newline at end of file
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/d8/870b0911df45df81c153db4d8405
Event Timeline
Log In to Comment