[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20514] branches/blender2.5/blender/ release/ui/space_outliner.py: updated outliner header python file, still disabled for now, because there' s not a nice way yet to represent the keying sets menu.
Matt Ebb
matt at mke3.net
Sat May 30 08:23:17 CEST 2009
Revision: 20514
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20514
Author: broken
Date: 2009-05-30 08:23:17 +0200 (Sat, 30 May 2009)
Log Message:
-----------
updated outliner header python file, still disabled for now, because there's not a nice way yet to represent the keying sets menu.
Modified Paths:
--------------
branches/blender2.5/blender/release/ui/space_outliner.py
Modified: branches/blender2.5/blender/release/ui/space_outliner.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_outliner.py 2009-05-30 04:24:10 UTC (rev 20513)
+++ branches/blender2.5/blender/release/ui/space_outliner.py 2009-05-30 06:23:17 UTC (rev 20514)
@@ -7,6 +7,7 @@
def draw(self, context):
so = context.space_data
+ sce = context.scene
layout = self.layout
layout.template_header(context)
@@ -15,8 +16,24 @@
row = layout.row(align=True)
row.itemM(context, "OUTLINER_MT_view")
- row = layout.row(align=True)
+ row = layout.row()
row.itemR(so, "display_mode", text="")
+
+ if so.display_mode == 'DATABLOCKS':
+ row = layout.row(align=True)
+ row.itemO("ANIM_OT_keyingset_add_new", text="", icon=31)
+ # row.itemR(sce, "active_keyingset", text="KS: ")
+ # ks = sce.keyingsets[sce.active_keyingset - 1]
+ # row.itemR(ks, "name", text="")
+ ## row.itemR(sce, "keyingsets")
+
+ row = layout.row()
+ row.itemO("OUTLINER_OT_keyingset_add_selected", text="", icon=31)
+ row.itemO("OUTLINER_OT_keyingset_remove_selected", text="", icon=32)
+
+ row.itemO("ANIM_OT_insert_keyframe", text="", icon=514)
+ row.itemO("ANIM_OT_delete_keyframe", text="", icon=513)
+
class OUTLINER_MT_view(bpy.types.Menu):
__space_type__ = "OUTLINER"
@@ -26,8 +43,8 @@
layout = self.layout
so = context.space_data
- layout.column()
- row.itemR(so, "show_restriction_columns")
+ col = layout.column()
+ col.itemR(so, "show_restriction_columns")
#layout.itemO("TEXT_OT_new")
bpy.types.register(OUTLINER_HT_header)
More information about the Bf-blender-cvs
mailing list