Making "Jump to Keyframes" operator (for Action/Graph Editors) more obvious
This operator used to be called "Jump to Frame". It basically takes the midpoint (frame number and/or value) of selected keyframes, and positions the current frame (or2d-cursor in Graph Editor) at this point. The hotkey for this is now Ctrl-G (i.e. as it's similar to a "Goto Frame" feature). It is also now in the Key menu instead of in the relatively obscure View menu, even though it doesn't actually result in any keyframe edits taking place. (Also, fixed a typo/grammer issue with one of Remove Bone Group operator)
This commit is contained in:
@@ -165,7 +165,6 @@ class DOPESHEET_MT_view(Menu):
|
||||
layout.operator("action.previewrange_set")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("action.frame_jump")
|
||||
layout.operator("action.view_all")
|
||||
layout.operator("action.view_selected")
|
||||
|
||||
@@ -275,6 +274,9 @@ class DOPESHEET_MT_key(Menu):
|
||||
layout.separator()
|
||||
layout.operator("action.keyframe_insert")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("action.frame_jump")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("action.duplicate_move")
|
||||
layout.operator("action.delete")
|
||||
|
@@ -96,7 +96,6 @@ class GRAPH_MT_view(Menu):
|
||||
layout.operator("graph.previewrange_set")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("graph.frame_jump")
|
||||
layout.operator("graph.view_all")
|
||||
layout.operator("graph.view_selected")
|
||||
|
||||
@@ -198,6 +197,9 @@ class GRAPH_MT_key(Menu):
|
||||
layout.operator("graph.fmodifier_add")
|
||||
layout.operator("graph.sound_bake")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("graph.frame_jump")
|
||||
|
||||
layout.separator()
|
||||
layout.operator("graph.duplicate_move")
|
||||
layout.operator("graph.delete")
|
||||
|
@@ -1399,7 +1399,7 @@ void POSE_OT_group_remove(wmOperatorType *ot)
|
||||
/* identifiers */
|
||||
ot->name = "Remove Bone Group";
|
||||
ot->idname = "POSE_OT_group_remove";
|
||||
ot->description = "Removes the active bone group";
|
||||
ot->description = "Remove the active bone group";
|
||||
|
||||
/* api callbacks */
|
||||
ot->exec = pose_group_remove_exec;
|
||||
|
@@ -1353,9 +1353,9 @@ static int actkeys_framejump_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
void ACTION_OT_frame_jump(wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
ot->name = "Jump to Frame";
|
||||
ot->name = "Jump to Keyframes";
|
||||
ot->idname = "ACTION_OT_frame_jump";
|
||||
ot->description = "Set the current frame to the average frame of the selected keyframes";
|
||||
ot->description = "Set the current frame to the average frame value of selected keyframes";
|
||||
|
||||
/* api callbacks */
|
||||
ot->exec = actkeys_framejump_exec;
|
||||
|
@@ -168,9 +168,8 @@ static void action_keymap_keyframes(wmKeyConfig *keyconf, wmKeyMap *keymap)
|
||||
|
||||
|
||||
/* action_edit.c */
|
||||
/* snap - current frame to selected keys */
|
||||
// TODO: maybe since this is called jump, we're better to have it on <something>-J?
|
||||
WM_keymap_add_item(keymap, "ACTION_OT_frame_jump", SKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0);
|
||||
/* jump to selected keyframes */
|
||||
WM_keymap_add_item(keymap, "ACTION_OT_frame_jump", GKEY, KM_PRESS, KM_CTRL, 0);
|
||||
|
||||
/* menu + single-step transform */
|
||||
WM_keymap_add_item(keymap, "ACTION_OT_snap", SKEY, KM_PRESS, KM_SHIFT, 0);
|
||||
|
@@ -1808,9 +1808,9 @@ static int graphkeys_framejump_exec(bContext *C, wmOperator *UNUSED(op))
|
||||
void GRAPH_OT_frame_jump(wmOperatorType *ot)
|
||||
{
|
||||
/* identifiers */
|
||||
ot->name = "Jump to Frame";
|
||||
ot->name = "Jump to Keyframes";
|
||||
ot->idname = "GRAPH_OT_frame_jump";
|
||||
ot->description = "Set the current frame to the average frame of the selected keyframes";
|
||||
ot->description = "Place the cursor on the midpoint of selected keyframes";
|
||||
|
||||
/* api callbacks */
|
||||
ot->exec = graphkeys_framejump_exec;
|
||||
|
@@ -346,9 +346,8 @@ static void graphedit_keymap_keyframes(wmKeyConfig *keyconf, wmKeyMap *keymap)
|
||||
|
||||
|
||||
/* graph_edit.c */
|
||||
/* snap - current frame to selected keys */
|
||||
// TODO: maybe since this is called jump, we're better to have it on <something>-J?
|
||||
WM_keymap_add_item(keymap, "GRAPH_OT_frame_jump", SKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0);
|
||||
/* jump to selected keyframes */
|
||||
WM_keymap_add_item(keymap, "GRAPH_OT_frame_jump", GKEY, KM_PRESS, KM_CTRL, 0);
|
||||
|
||||
/* menu + single-step transform */
|
||||
WM_keymap_add_item(keymap, "GRAPH_OT_snap", SKEY, KM_PRESS, KM_SHIFT, 0);
|
||||
|
Reference in New Issue
Block a user