Blender
V3.3
|
#include "DNA_scene_types.h"
Go to the source code of this file.
Definition at line 440 of file utils.c.
References Sequence::mask, NULL, scene, SEQ_select_active_get(), SEQ_TYPE_MASK, and Sequence::type.
Referenced by ED_space_sequencer_check_show_maskedit(), and sequencer_context().
Definition at line 451 of file utils.c.
References Sequence::alpha_mode, BKE_image_alpha_mode_from_extension_ex(), StripElem::name, Sequence::strip, and Strip::stripdata.
Referenced by seq_set_alpha_mode_cb().
Ensure, that provided Sequence has unique name. If animation data exists for this Sequence, it will be duplicated and mapped onto new name
seq | Sequence which name will be ensured to be unique |
scene | Scene in which name must be unique |
Definition at line 523 of file utils.c.
References Scene::adt, BKE_animdata_fix_paths_rename(), BLI_strncpy_utf8(), Scene::ed, Scene::id, LISTBASE_FOREACH, Sequence::name, NULL, scene, SEQ_NAME_MAXSTR, SEQ_sequence_base_unique_name_recursive(), SEQ_TYPE_META, Sequence::seqbase, Editing::seqbase, and Sequence::type.
Referenced by SEQ_edit_strip_split(), sequencer_add_duplicate_exec(), and sequencer_paste_exec().
In cases where we don't know the sequence's listbase.
struct ListBase* SEQ_get_seqbase_from_sequence | ( | struct Sequence * | seq, |
struct ListBase ** | channels, | ||
int * | r_offset | ||
) |
Definition at line 182 of file utils.c.
References Sequence::channels, Editing::channels, Sequence::flag, NULL, Scene::r, Sequence::scene, SEQ_editing_get(), SEQ_SCENE_STRIPS, SEQ_time_start_frame_get(), SEQ_TYPE_META, SEQ_TYPE_SCENE, Sequence::seqbase, Editing::seqbase, RenderData::sfra, and Sequence::type.
Referenced by do_render_strip_seqbase(), and drawmeta_contents().
struct Sequence* SEQ_get_sequence_by_name | ( | struct ListBase * | seqbase, |
const char * | name, | ||
bool | recursive | ||
) |
Definition at line 422 of file utils.c.
References ListBase::first, Sequence::name, Sequence::next, NULL, Sequence::seqbase, and STREQ.
Referenced by animchan_sync_fcurve_scene(), and skip_fcurve_selected_data().
void SEQ_sequence_base_unique_name_recursive | ( | struct Scene * | scene, |
struct ListBase * | seqbasep, | ||
struct Sequence * | seq | ||
) |
Definition at line 78 of file utils.c.
References BLI_strncpy(), SeqUniqueInfo::count, blender::math::dot(), SeqUniqueInfo::match, Sequence::name, SeqUniqueInfo::name_dest, SeqUniqueInfo::name_src, scene, SeqUniqueInfo::seq, SEQ_edit_sequence_name_set(), SEQ_for_each_callback(), seqbase_unique_name(), and seqbase_unique_name_recursive_fn().
Referenced by do_versions_seq_unique_name_all_strips(), seq_add_generic_update(), seq_dupli(), SEQ_ensure_unique_name(), and sequencer_meta_make_exec().
Only use as last resort when the StripElem is available but no the Sequence. (needed for RNA)
Definition at line 403 of file utils.c.
References ARRAY_HAS_ITEM, ListBase::first, Sequence::len, Sequence::next, Sequence::seqbase, Sequence::strip, and Strip::stripdata.
const char* SEQ_sequence_give_name | ( | struct Sequence * | seq | ) |
Definition at line 168 of file utils.c.
References Strip::dir, give_seqname_by_type(), SEQ_TYPE_EFFECT, Sequence::strip, and Sequence::type.
Referenced by draw_seq_text_get_name(), and seq_add_set_name().
void SEQ_set_scale_to_fit | ( | const struct Sequence * | seq, |
int | image_width, | ||
int | image_height, | ||
int | preview_width, | ||
int | preview_height, | ||
eSeqImageFitMethod | fit_method | ||
) |