Blender V4.3
animation.cc File Reference
#include <cstring>
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "BKE_fcurve.hh"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "DEG_depsgraph.hh"
#include "SEQ_animation.hh"

Go to the source code of this file.

Macros

#define SEQ_RNAPATH_MAXSTR   ((30 + 2 + (SEQ_NAME_MAXSTR * 2) + 2) + 1)
 

Functions

bool SEQ_animation_curves_exist (Scene *scene)
 
bool SEQ_animation_drivers_exist (Scene *scene)
 
static size_t sequencer_rna_path_prefix (char str[SEQ_RNAPATH_MAXSTR], const char *name)
 
GSetSEQ_fcurves_by_strip_get (const Sequence *seq, ListBase *fcurve_base)
 
void SEQ_offset_animdata (Scene *scene, Sequence *seq, int ofs)
 
void SEQ_free_animdata (Scene *scene, Sequence *seq)
 
void SEQ_animation_backup_original (Scene *scene, SeqAnimationBackup *backup)
 
void SEQ_animation_restore_original (Scene *scene, SeqAnimationBackup *backup)
 
static void seq_animation_duplicate (Scene *scene, Sequence *seq, ListBase *dst, ListBase *src)
 
void SEQ_animation_duplicate_backup_to_scene (Scene *scene, Sequence *seq, SeqAnimationBackup *backup)
 

Macro Definition Documentation

◆ SEQ_RNAPATH_MAXSTR

#define SEQ_RNAPATH_MAXSTR   ((30 + 2 + (SEQ_NAME_MAXSTR * 2) + 2) + 1)

Definition at line 37 of file animation.cc.

Referenced by SEQ_fcurves_by_strip_get(), and sequencer_rna_path_prefix().

Function Documentation

◆ SEQ_animation_backup_original()

void SEQ_animation_backup_original ( Scene * scene,
SeqAnimationBackup * backup )

◆ SEQ_animation_curves_exist()

bool SEQ_animation_curves_exist ( Scene * scene)

◆ SEQ_animation_drivers_exist()

bool SEQ_animation_drivers_exist ( Scene * scene)

◆ seq_animation_duplicate()

◆ SEQ_animation_duplicate_backup_to_scene()

void SEQ_animation_duplicate_backup_to_scene ( Scene * scene,
Sequence * seq,
SeqAnimationBackup * backup )

Duplicate F-Curves and drivers used by seq from backup to scene.

Definition at line 161 of file animation.cc.

References BLI_listbase_is_empty(), SeqAnimationBackup::curves, SeqAnimationBackup::drivers, and seq_animation_duplicate().

Referenced by SEQ_edit_strip_split(), and sequencer_add_duplicate_exec().

◆ SEQ_animation_restore_original()

void SEQ_animation_restore_original ( Scene * scene,
SeqAnimationBackup * backup )

Move all F-Curves and drivers from backup to scene.

Definition at line 130 of file animation.cc.

References BLI_listbase_is_empty(), BLI_movelisttolist(), SeqAnimationBackup::curves, and SeqAnimationBackup::drivers.

Referenced by SEQ_edit_strip_split(), sequencer_add_duplicate_exec(), and sequencer_clipboard_paste_exec().

◆ SEQ_fcurves_by_strip_get()

◆ SEQ_free_animdata()

◆ SEQ_offset_animdata()

◆ sequencer_rna_path_prefix()

static size_t sequencer_rna_path_prefix ( char str[SEQ_RNAPATH_MAXSTR],
const char * name )
static