Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-02-07 14:50:03 +0300
committerJoshua Leung <aligorith@gmail.com>2010-02-07 14:50:03 +0300
commit20fb4e3367a4a544e15fa7c556868a37966356de (patch)
tree210d314df871e2122592e8a0eeeb4416cfcf1d3f /release
parent7d2c4384e275a1ff5ab289b859d6e75a29645115 (diff)
DopeSheet and Graph Editors: Select More/Less Operators
This commit introduces the Select More/Less Operators (Ctrl +/-) for keyframes. This works like the ones for curves, by only selecting/deselecting keyframes lying in the same F-Curve. Inter F-Curve selection is not done by this operator. That is the job for another one. This is especially useful for F-Curves set in the 0-1-0 pattern (i.e. 3 keyframes forming localised peaks), where the peaks can be selected by clicking on them individually, and immediately surrounding '0' values are selected too using "Select More".
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_dopesheet.py4
-rw-r--r--release/scripts/ui/space_graph.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/ui/space_dopesheet.py b/release/scripts/ui/space_dopesheet.py
index 4416f3128a8..2bd0300c465 100644
--- a/release/scripts/ui/space_dopesheet.py
+++ b/release/scripts/ui/space_dopesheet.py
@@ -119,6 +119,10 @@ class DOPESHEET_MT_select(bpy.types.Menu):
layout.operator("action.select_column", text="Columns on Selected Markers").mode = 'MARKERS_COLUMN'
layout.operator("action.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN'
+ layout.separator()
+ layout.operator("action.select_more")
+ layout.operator("action.select_less")
+
class DOPESHEET_MT_channel(bpy.types.Menu):
bl_label = "Channel"
diff --git a/release/scripts/ui/space_graph.py b/release/scripts/ui/space_graph.py
index e4752877c2f..511ab06d0da 100644
--- a/release/scripts/ui/space_graph.py
+++ b/release/scripts/ui/space_graph.py
@@ -122,6 +122,10 @@ class GRAPH_MT_select(bpy.types.Menu):
layout.operator("graph.select_column", text="Columns on Selected Markers").mode = 'MARKERS_COLUMN'
layout.operator("graph.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN'
+ layout.separator()
+ layout.operator("graph.select_more")
+ layout.operator("graph.select_less")
+
class GRAPH_MT_channel(bpy.types.Menu):
bl_label = "Channel"