diff options
Diffstat (limited to 'release/scripts/ui/space_graph.py')
-rw-r--r-- | release/scripts/ui/space_graph.py | 47 |
1 files changed, 43 insertions, 4 deletions
diff --git a/release/scripts/ui/space_graph.py b/release/scripts/ui/space_graph.py index 9b08da801c9..6bc47ffce86 100644 --- a/release/scripts/ui/space_graph.py +++ b/release/scripts/ui/space_graph.py @@ -39,6 +39,7 @@ class GRAPH_HT_header(bpy.types.Header): sub.menu("GRAPH_MT_view") sub.menu("GRAPH_MT_select") + sub.menu("GRAPH_MT_marker") sub.menu("GRAPH_MT_channel") sub.menu("GRAPH_MT_key") @@ -80,6 +81,9 @@ class GRAPH_MT_view(bpy.types.Menu): layout.prop(st, "use_auto_merge_keyframes") layout.separator() + layout.prop(st, "use_fancy_drawing") + + layout.separator() if st.show_handles: layout.operator("graph.handles_view_toggle", icon='CHECKBOX_HLT', text="Show All Handles") else: @@ -126,6 +130,10 @@ class GRAPH_MT_select(bpy.types.Menu): layout.operator("graph.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN' layout.separator() + layout.operator("graph.select_leftright", text="Before Current Frame").mode = 'LEFT' + layout.operator("graph.select_leftright", text="After Current Frame").mode = 'RIGHT' + + layout.separator() layout.operator("graph.select_more") layout.operator("graph.select_less") @@ -133,6 +141,27 @@ class GRAPH_MT_select(bpy.types.Menu): layout.operator("graph.select_linked") +class GRAPH_MT_marker(bpy.types.Menu): + bl_label = "Marker" + + def draw(self, context): + layout = self.layout + + #layout.operator_context = 'EXEC_REGION_WIN' + + layout.column() + layout.operator("marker.add", "Add Marker") + layout.operator("marker.duplicate", text="Duplicate Marker") + layout.operator("marker.delete", text="Delete Marker") + + layout.separator() + + layout.operator("marker.rename", text="Rename Marker") + layout.operator("marker.move", text="Grab/Move Marker") + + # TODO: pose markers for action edit mode only? + + class GRAPH_MT_channel(bpy.types.Menu): bl_label = "Channel" @@ -142,6 +171,9 @@ class GRAPH_MT_channel(bpy.types.Menu): layout.operator_context = 'INVOKE_REGION_CHANNELS' layout.column() + layout.operator("anim.channels_delete") + + layout.separator() layout.operator("anim.channels_setting_toggle") layout.operator("anim.channels_setting_enable") layout.operator("anim.channels_setting_disable") @@ -149,13 +181,17 @@ class GRAPH_MT_channel(bpy.types.Menu): layout.separator() layout.operator("anim.channels_editable_toggle") layout.operator("anim.channels_visibility_set") + layout.operator_menu_enum("graph.extrapolation_type", "type", text="Extrapolation Mode") layout.separator() layout.operator("anim.channels_expand") layout.operator("anim.channels_collapse") layout.separator() - layout.operator("graph.euler_filter", text="Discontinuity (Euler) Filter") + layout.operator_menu_enum("anim.channels_move", "direction", text="Move...") + + layout.separator() + layout.operator("anim.channels_fcurves_enable") class GRAPH_MT_key(bpy.types.Menu): @@ -181,10 +217,10 @@ class GRAPH_MT_key(bpy.types.Menu): layout.separator() layout.operator_menu_enum("graph.handle_type", "type", text="Handle Type") layout.operator_menu_enum("graph.interpolation_type", "type", text="Interpolation Mode") - layout.operator_menu_enum("graph.extrapolation_type", "type", text="Extrapolation Mode") layout.separator() layout.operator("graph.clean") + layout.operator("graph.smooth") layout.operator("graph.sample") layout.operator("graph.bake") @@ -192,6 +228,9 @@ class GRAPH_MT_key(bpy.types.Menu): layout.operator("graph.copy") layout.operator("graph.paste") + layout.separator() + layout.operator("graph.euler_filter", text="Discontinuity (Euler) Filter") + class GRAPH_MT_key_transform(bpy.types.Menu): bl_label = "Transform" @@ -207,11 +246,11 @@ class GRAPH_MT_key_transform(bpy.types.Menu): def register(): - pass + bpy.utils.register_module(__name__) def unregister(): - pass + bpy.utils.unregister_module(__name__) if __name__ == "__main__": register() |