Blender V5.3
nla_edit.cc File Reference
#include <cmath>
#include <cstdio>
#include <cstring>
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_speaker_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_base_c.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_nla.hh"
#include "BKE_report.hh"
#include "ED_anim_api.hh"
#include "ED_keyframes_edit.hh"
#include "ED_markers.hh"
#include "ED_screen.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "UI_interface_icons.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "UI_view2d.hh"
#include "ANIM_action.hh"
#include "ANIM_action_legacy.hh"
#include "nla_intern.hh"
#include "nla_private.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

NLA-Mapping
void blender::ED_nla_postop_refresh (bAnimContext *ac)
Enable Tweak-Mode Operator
static wmOperatorStatus blender::nlaedit_enable_tweakmode_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_tweakmode_enter (wmOperatorType *ot)
Disable Tweak-Mode Operator
bool blender::nlaedit_disable_tweakmode (bAnimContext *ac, bool do_solo)
static wmOperatorStatus blender::nlaedit_disable_tweakmode_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_tweakmode_exit (wmOperatorType *ot)
Calculate NLA Strip Range
static void blender::get_nlastrip_extents (bAnimContext *ac, float *min, float *max, const bool only_sel)
Automatic Preview-Range Operator
static wmOperatorStatus blender::nlaedit_previewrange_exec (bContext *C, wmOperator *)
void blender::NLA_OT_previewrange_set (wmOperatorType *ot)
View-All Operator
static bool blender::nla_tracks_get_selected_extents (bAnimContext *ac, float *r_min, float *r_max)
static wmOperatorStatus blender::nlaedit_viewall (bContext *C, const bool only_sel)
static wmOperatorStatus blender::nlaedit_viewall_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::nlaedit_viewsel_exec (bContext *C, wmOperator *)
void blender::NLA_OT_view_all (wmOperatorType *ot)
void blender::NLA_OT_view_selected (wmOperatorType *ot)
View-Frame Operator
static wmOperatorStatus blender::nlaedit_viewframe_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_view_frame (wmOperatorType *ot)
Add Action-Clip Operator

Add a new Action-Clip strip to the active track (or the active block if no space in the track).

static int blender::nlaedit_get_editable_tracks (bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
static wmOperatorStatus blender::nlaedit_add_actionclip_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::nlaedit_add_actionclip_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_actionclip_add (wmOperatorType *ot)
Add Transition Operator

Add a new transition strip between selected strips.

static wmOperatorStatus blender::nlaedit_add_transition_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_transition_add (wmOperatorType *ot)
Add Sound Clip Operator
static wmOperatorStatus blender::nlaedit_add_sound_exec (bContext *C, wmOperator *)
void blender::NLA_OT_soundclip_add (wmOperatorType *ot)
Add Meta-Strip Operator

Add new meta-strips incorporating the selected strips.

static wmOperatorStatus blender::nlaedit_add_meta_exec (bContext *C, wmOperator *)
void blender::NLA_OT_meta_add (wmOperatorType *ot)
Remove Meta-Strip Operator

Separate out the strips held by the selected meta-strips.

static wmOperatorStatus blender::nlaedit_remove_meta_exec (bContext *C, wmOperator *)
void blender::NLA_OT_meta_remove (wmOperatorType *ot)
Duplicate Strips Operator

Duplicates the selected NLA-Strips, putting them on new tracks above the one the originals were housed in.

static wmOperatorStatus blender::nlaedit_duplicate_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::nlaedit_duplicate_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::NLA_OT_duplicate (wmOperatorType *ot)
Delete Strips Operator

Deletes the selected NLA-Strips.

static wmOperatorStatus blender::nlaedit_delete_exec (bContext *C, wmOperator *)
void blender::NLA_OT_delete (wmOperatorType *ot)
Split Strips Operator

Splits the selected NLA-Strips into two strips at the midpoint of the strip.

TODO's?

  • multiple splits
  • variable-length splits?
static void blender::nlaedit_split_strip_actclip (Main *bmain, AnimData *adt, NlaTrack *nlt, NlaStrip *strip, float cfra)
static void blender::nlaedit_split_strip_meta (NlaTrack *nlt, NlaStrip *strip)
static wmOperatorStatus blender::nlaedit_split_exec (bContext *C, wmOperator *)
void blender::NLA_OT_split (wmOperatorType *ot)
Toggle Muting Operator

Toggles whether strips are muted or not.

static wmOperatorStatus blender::nlaedit_toggle_mute_exec (bContext *C, wmOperator *)
void blender::NLA_OT_mute_toggle (wmOperatorType *ot)
Swap Strips Operator

Tries to exchange strips within their owner tracks.

static wmOperatorStatus blender::nlaedit_swap_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_swap (wmOperatorType *ot)
Move Strips Up Operator

Tries to move the selected strips into the track above if possible.

static wmOperatorStatus blender::nlaedit_move_up_exec (bContext *C, wmOperator *)
void blender::NLA_OT_move_up (wmOperatorType *ot)
Move Strips Down Operator

Tries to move the selected strips into the track above if possible.

static wmOperatorStatus blender::nlaedit_move_down_exec (bContext *C, wmOperator *)
void blender::NLA_OT_move_down (wmOperatorType *ot)
Sync Action Length Operator

Recalculate the extents of the action ranges used for the selected strips.

static wmOperatorStatus blender::nlaedit_sync_actlen_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_action_sync_length (wmOperatorType *ot)
Make Single User

Ensure that each strip has its own action.

static wmOperatorStatus blender::nlaedit_make_single_user_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::nlaedit_make_single_user_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::NLA_OT_make_single_user (wmOperatorType *ot)
Apply Scale Operator

Reset the scaling of the selected strips to 1.0f.

static short blender::bezt_apply_nlamapping (KeyframeEditData *ked, BezTriple *bezt)
static wmOperatorStatus blender::nlaedit_apply_scale_exec (bContext *C, wmOperator *)
void blender::NLA_OT_apply_scale (wmOperatorType *ot)
Clear Scale Operator

Reset the scaling of the selected strips to 1.0f.

static wmOperatorStatus blender::nlaedit_clear_scale_exec (bContext *C, wmOperator *)
void blender::NLA_OT_clear_scale (wmOperatorType *ot)
Add F-Modifier Operator
static const EnumPropertyItem * blender::nla_fmodifier_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static wmOperatorStatus blender::nla_fmodifier_add_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_fmodifier_add (wmOperatorType *ot)
Copy F-Modifiers Operator
static wmOperatorStatus blender::nla_fmodifier_copy_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_fmodifier_copy (wmOperatorType *ot)
Paste F-Modifiers Operator
static wmOperatorStatus blender::nla_fmodifier_paste_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_fmodifier_paste (wmOperatorType *ot)

Snap Strips Operator

Moves the start-point of the selected strips to the specified places.

static const EnumPropertyItem blender::prop_nlaedit_snap_types []
static wmOperatorStatus blender::nlaedit_snap_exec (bContext *C, wmOperator *op)
void blender::NLA_OT_snap (wmOperatorType *ot)