2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2008-12-14 14:43:08 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2018-06-01 18:19:39 +02:00
|
|
|
* of the License, or (at your option) any later version.
|
2008-12-14 14:43:08 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2008-12-14 14:43:08 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2008 Blender Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
2011-02-27 20:29:51 +00:00
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
* \ingroup spaction
|
2011-02-27 20:29:51 +00:00
|
|
|
*/
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#pragma once
|
2008-12-14 14:43:08 +00:00
|
|
|
|
2008-12-22 08:13:25 +00:00
|
|
|
struct ARegion;
|
2016-05-08 14:38:30 +12:00
|
|
|
struct ARegionType;
|
2019-01-28 21:08:24 +11:00
|
|
|
struct Object;
|
|
|
|
struct Scene;
|
|
|
|
struct SpaceAction;
|
|
|
|
struct bAnimContext;
|
|
|
|
struct bContext;
|
2008-12-23 11:02:39 +00:00
|
|
|
struct wmOperatorType;
|
2008-12-22 08:13:25 +00:00
|
|
|
|
2008-12-14 14:43:08 +00:00
|
|
|
/* internal exports only */
|
|
|
|
|
2016-05-08 14:38:30 +12:00
|
|
|
/* **************************************** */
|
|
|
|
/* space_action.c / action_buttons.c */
|
|
|
|
|
|
|
|
void action_buttons_register(struct ARegionType *art);
|
|
|
|
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
/* ***************************************** */
|
2008-12-22 08:13:25 +00:00
|
|
|
/* action_draw.c */
|
2020-03-06 16:56:42 +01:00
|
|
|
void draw_channel_names(struct bContext *C, struct bAnimContext *ac, struct ARegion *region);
|
|
|
|
void draw_channel_strips(struct bAnimContext *ac,
|
|
|
|
struct SpaceAction *saction,
|
|
|
|
struct ARegion *region);
|
2008-12-14 14:43:08 +00:00
|
|
|
|
2018-04-19 16:04:26 +02:00
|
|
|
void timeline_draw_cache(struct SpaceAction *saction, struct Object *ob, struct Scene *scene);
|
|
|
|
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
/* ***************************************** */
|
2008-12-23 11:02:39 +00:00
|
|
|
/* action_select.c */
|
2008-12-27 11:44:00 +00:00
|
|
|
|
2018-07-03 15:44:56 +02:00
|
|
|
void ACTION_OT_select_all(struct wmOperatorType *ot);
|
2018-10-05 10:27:04 +10:00
|
|
|
void ACTION_OT_select_box(struct wmOperatorType *ot);
|
2016-06-23 23:16:14 +12:00
|
|
|
void ACTION_OT_select_lasso(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_select_circle(struct wmOperatorType *ot);
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_select_column(struct wmOperatorType *ot);
|
2010-04-05 11:47:55 +00:00
|
|
|
void ACTION_OT_select_linked(struct wmOperatorType *ot);
|
2010-02-07 11:50:03 +00:00
|
|
|
void ACTION_OT_select_more(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_select_less(struct wmOperatorType *ot);
|
2011-02-14 02:30:33 +00:00
|
|
|
void ACTION_OT_select_leftright(struct wmOperatorType *ot);
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_clickselect(struct wmOperatorType *ot);
|
2008-12-23 11:02:39 +00:00
|
|
|
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
/* defines for left-right select tool */
|
2013-03-22 05:46:39 +00:00
|
|
|
enum eActKeys_LeftRightSelect_Mode {
|
2012-05-08 16:02:13 +00:00
|
|
|
ACTKEYS_LRSEL_TEST = 0,
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
ACTKEYS_LRSEL_LEFT,
|
2019-02-03 14:01:45 +11:00
|
|
|
ACTKEYS_LRSEL_RIGHT,
|
2013-03-22 05:46:39 +00:00
|
|
|
};
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
|
|
|
|
/* defines for column-select mode */
|
2013-03-22 05:46:39 +00:00
|
|
|
enum eActKeys_ColumnSelect_Mode {
|
2012-05-08 16:02:13 +00:00
|
|
|
ACTKEYS_COLUMNSEL_KEYS = 0,
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
ACTKEYS_COLUMNSEL_CFRA,
|
|
|
|
ACTKEYS_COLUMNSEL_MARKERS_COLUMN,
|
|
|
|
ACTKEYS_COLUMNSEL_MARKERS_BETWEEN,
|
2013-03-22 05:46:39 +00:00
|
|
|
};
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
|
2008-12-27 11:44:00 +00:00
|
|
|
/* ***************************************** */
|
2009-01-01 00:18:23 +00:00
|
|
|
/* action_edit.c */
|
2008-12-27 11:44:00 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_previewrange_set(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_view_all(struct wmOperatorType *ot);
|
2011-03-17 10:02:37 +00:00
|
|
|
void ACTION_OT_view_selected(struct wmOperatorType *ot);
|
2015-04-13 14:30:17 +02:00
|
|
|
void ACTION_OT_view_frame(struct wmOperatorType *ot);
|
2009-01-01 01:47:36 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_copy(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_paste(struct wmOperatorType *ot);
|
2008-12-29 11:04:55 +00:00
|
|
|
|
2009-12-31 23:56:45 +00:00
|
|
|
void ACTION_OT_keyframe_insert(struct wmOperatorType *ot);
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_duplicate(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_delete(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_clean(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_sample(struct wmOperatorType *ot);
|
2008-12-29 01:19:25 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_keyframe_type(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_handle_type(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_interpolation_type(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_extrapolation_type(struct wmOperatorType *ot);
|
2020-03-10 14:02:16 +01:00
|
|
|
void ACTION_OT_easing_type(struct wmOperatorType *ot);
|
2008-12-28 08:15:29 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_frame_jump(struct wmOperatorType *ot);
|
2009-06-22 03:26:36 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_snap(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_mirror(struct wmOperatorType *ot);
|
2008-12-27 11:44:00 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
void ACTION_OT_new(struct wmOperatorType *ot);
|
2015-04-04 11:36:46 +13:00
|
|
|
void ACTION_OT_unlink(struct wmOperatorType *ot);
|
|
|
|
|
2015-02-27 17:06:44 +13:00
|
|
|
void ACTION_OT_push_down(struct wmOperatorType *ot);
|
2015-02-28 03:32:13 +13:00
|
|
|
void ACTION_OT_stash(struct wmOperatorType *ot);
|
2015-03-01 00:38:44 +13:00
|
|
|
void ACTION_OT_stash_and_create(struct wmOperatorType *ot);
|
2009-09-16 18:32:10 +00:00
|
|
|
|
2015-04-03 23:15:56 +13:00
|
|
|
void ACTION_OT_layer_next(struct wmOperatorType *ot);
|
|
|
|
void ACTION_OT_layer_prev(struct wmOperatorType *ot);
|
|
|
|
|
2011-02-26 06:28:24 +00:00
|
|
|
void ACTION_OT_markers_make_local(struct wmOperatorType *ot);
|
|
|
|
|
2018-06-04 09:31:30 +02:00
|
|
|
/* defines for snap keyframes
|
2008-12-27 11:44:00 +00:00
|
|
|
* NOTE: keep in sync with eEditKeyframes_Snap (in ED_keyframes_edit.h)
|
|
|
|
*/
|
2013-03-22 05:46:39 +00:00
|
|
|
enum eActKeys_Snap_Mode {
|
2008-12-27 11:44:00 +00:00
|
|
|
ACTKEYS_SNAP_CFRA = 1,
|
|
|
|
ACTKEYS_SNAP_NEAREST_FRAME,
|
|
|
|
ACTKEYS_SNAP_NEAREST_SECOND,
|
2012-10-21 05:46:41 +00:00
|
|
|
ACTKEYS_SNAP_NEAREST_MARKER,
|
2013-03-22 05:46:39 +00:00
|
|
|
};
|
2008-12-27 11:44:00 +00:00
|
|
|
|
2018-06-04 09:31:30 +02:00
|
|
|
/* defines for mirror keyframes
|
2008-12-27 11:44:00 +00:00
|
|
|
* NOTE: keep in sync with eEditKeyframes_Mirror (in ED_keyframes_edit.h)
|
|
|
|
*/
|
2013-03-22 05:46:39 +00:00
|
|
|
enum eActKeys_Mirror_Mode {
|
2008-12-27 11:44:00 +00:00
|
|
|
ACTKEYS_MIRROR_CFRA = 1,
|
|
|
|
ACTKEYS_MIRROR_YAXIS,
|
|
|
|
ACTKEYS_MIRROR_XAXIS,
|
2012-10-21 05:46:41 +00:00
|
|
|
ACTKEYS_MIRROR_MARKER,
|
2013-03-22 05:46:39 +00:00
|
|
|
};
|
2018-06-04 09:31:30 +02:00
|
|
|
|
2.5 - Action Editor: All Keyframe Selection Tools Ported
User Notes (for using tools whose behaviour has changed):
* Mouse Selection Tools:
1) Click on keyframe to modify its selection. Holding the 'Shift' modifier when doing so, will result in keyframe selection being toggled instead of replacing existing selections.
2) Click on either side of the current frame indicator while holding the 'Alt' modifier. This will select only all the keyframes on the relevant side of the current frame indicator.
3) Click on a keyframe while holding the 'Ctrl' modifier. This will select all the keyframes that fall on that frame.
* Borderselect Tools
1) BKEY selects all the keyframes within the specified range (as per normal)
2) ALT-BKEY will select either all the keyframes in the frame-range specified or the channel range specified, depending on which axis of the select region was larger. This method is prejudiced towards frame-range selection.
Code Notes:
* Finished porting over all of the remaining keyframe selection tools, and recoded the ported ones to make them easier to use (after running into some technical limitations)
* Simplified the way to check if 'animation context' is valid by moving a necessary check into that function.
* Refactored internal keyframe-looping tools to reduce the amount of code needed per tool to edit keyframes, removing a lot of the unnecessary bulk. Now, the ipo/icu_keys_bezier_loop functions recieve a few more arguments (1st arg is pointer to generic customdata, and another defines a validation callback which makes it easier to reuse some of the select callbacks).
* Added 'totrect' adjustment for number of channels being shown in Action Editor, so that scrolling will be limited to where there is data (and also so that scroller displays more relevant context info).
For this to work, filtering channels now returns the number of channels extracted. This may come into use for other tools if there's such a need.
* I still need to port over some code for markers, which is required for some of the tools which use them. For now, those tools do nothing.
* Grease-Pencil editing mode in Action Editor is currently non-functional (code is commented out due to missing dependencies). This is currently pending the re-implementation of Grease Pencil in 2.5
2008-12-26 10:55:07 +00:00
|
|
|
/* ***************************************** */
|
2008-12-23 11:02:39 +00:00
|
|
|
/* action_ops.c */
|
|
|
|
void action_operatortypes(void);
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
void action_keymap(struct wmKeyConfig *keyconf);
|