Add actions to jump back and forth 1 frame in anim

This commit is contained in:
JannisX11 2020-10-07 22:15:29 +02:00
parent e09399b1e7
commit 04d5f2c480
2 changed files with 24 additions and 0 deletions

View File

@ -726,6 +726,28 @@ BARS.defineActions(function() {
Animator.preview()
}
})
new Action('timeline_frame_back', {
icon: 'arrow_back',
category: 'animation',
condition: {modes: ['animate']},
keybind: new Keybind({key: 188}),
click: function (e) {
let time = Timeline.snapTime(limitNumber(Timeline.time - Timeline.getStep(), 0, 1e4));
Timeline.setTime(time);
Animator.preview()
}
})
new Action('timeline_frame_forth', {
icon: 'arrow_forward',
category: 'animation',
condition: {modes: ['animate']},
keybind: new Keybind({key: 190}),
click: function (e) {
let time = Timeline.snapTime(limitNumber(Timeline.time + Timeline.getStep(), 0, 1e4));
Timeline.setTime(time);
Animator.preview()
}
})
new Action('bring_up_all_animations', {
icon: 'fa-sort-amount-up',

View File

@ -995,6 +995,8 @@
"action.next_keyframe.desc": "Jump to the next keyframe",
"action.jump_to_timeline_start": "Jump to Animation Start",
"action.jump_to_timeline_end": "Jump to Animation End",
"action.timeline_frame_back": "Jump 1 Frame Back",
"action.timeline_frame_forth": "Jump 1 Frame Forth",
"action.bring_up_all_animations": "Bring Up All Animators",
"action.bring_up_all_animations.desc": "Brings all modified animators into the timeline",
"action.fold_all_animations": "Fold All Animators",