68#include "RNA_prototypes.hh"
89#include <fmt/format.h>
138 if (!fcurve->rna_path().startswith(
"sequence_editor.strips_all[\"")) {
142 if (!fcurve->rna_path().endswith(
"\"].color")) {
217 const Strip *strip_active =
ed->act_strip;
235 const Strip *strip_active =
ed->act_strip;
271 if (sseq ==
nullptr) {
298 if (sseq ==
nullptr) {
315 if (sseq ==
nullptr) {
338 if (active_strip && active_strip->is_effect()) {
353 if (active_strip && active_strip->effect_num_inputs_get() == 2) {
354 const Strip *input1 = active_strip->input1;
355 const Strip *input2 = active_strip->input2;
356 const bool inputs_fully_overlap = input1->left_handle() == input2->left_handle() &&
357 input1->right_handle(scene) == input2->right_handle(scene);
360 "Transition inputs can only be swapped if the order is "
361 "ambiguous (i.e. if inputs fully overlap horizontally)");
387 if (!sseq && !sprop) {
424 sequencer_scene, seqbase, sequencer_scene->
r.
cfra);
432 std::ranges::sort(strips,
433 [](
const Strip *a,
const Strip *
b) {
return a->channel >
b->channel; });
435 for (
const Strip *strip : strips) {
446 if (!sequencer_scene) {
452 if (!scene_strip || !scene_strip->scene) {
463 if (active_scene != scene_strip->scene) {
467 active_scene = scene_strip->scene;
470 if (scene_strip->scene_camera) {
471 return scene_strip->scene_camera;
473 return scene_strip->scene->camera;
498 sequencer_scene, scene_strip, sequencer_scene->
r.
cfra) +
499 active_scene->
r.
sfra + scene_strip->anim_startofs;
501 active_scene->
r.
cfra = int(frame_index);
502 active_scene->
r.
subframe = frame_index - int(frame_index);
513 if (obact && prev_obact->
type == obact->
type) {
546 ot->
name =
"Remove Gaps";
547 ot->
idname =
"SEQUENCER_OT_gap_remove";
549 "Remove gap at current frame to first strip at the right, independent of selection or "
550 "locked state of strips";
560 RNA_def_boolean(ot->
srna,
"all",
false,
"All Gaps",
"Do all gaps to right of current frame");
584 ot->
name =
"Insert Gaps";
585 ot->
idname =
"SEQUENCER_OT_gap_insert";
587 "Insert gap at current frame to first strips at the right, independent of selection or "
588 "locked state of strips";
604 "Frames to insert after current strip",
649 auto strip_snap_delta_get = [&](
Strip *strip) {
650 return (snap_side ==
seq::Side::Right) ? snap_frame - strip->left_handle() :
651 snap_frame - strip->right_handle(scene);
654 std::optional<int> group_delta;
659 if (strip_anchor ==
nullptr) {
660 int best_dist = std::numeric_limits<int>::max();
661 for (
Strip *strip : selected) {
663 math::abs(snap_frame - strip->right_handle(scene)));
664 if (dist < best_dist) {
666 strip_anchor = strip;
670 else if (!(strip_anchor->flag &
SEQ_SELECT)) {
672 selected.
add(strip_anchor);
675 const bool left_sel = strip_anchor->flag &
SEQ_LEFTSEL;
676 const bool right_sel = strip_anchor->flag &
SEQ_RIGHTSEL;
678 group_delta = snap_frame - strip_anchor->left_handle();
681 const int right_delta = snap_frame - strip_anchor->right_handle(scene);
683 if (!group_delta.has_value() ||
math::abs(right_delta) < group_delta) {
684 group_delta = right_delta;
689 if (!group_delta.has_value()) {
690 group_delta = strip_snap_delta_get(strip_anchor);
694 for (
Strip *strip : selected) {
702 strip->left_handle_set(scene,
703 group_delta ? (strip->left_handle() + *group_delta) : snap_frame);
706 strip->right_handle_set(
707 scene, group_delta ? (strip->right_handle(scene) + *group_delta) : snap_frame);
710 if (!left_sel && !right_sel) {
712 scene, strip, group_delta ? *group_delta : strip_snap_delta_get(strip));
720 for (
Strip *strip : selected) {
721 if (strip->is_effect()) {
724 if (strip->input1 && (strip->input1->flag &
SEQ_SELECT)) {
725 if (!either_handle_selected) {
727 scene, strip, group_delta ? *group_delta : (snap_frame - strip->left_handle()));
730 else if (strip->input2 && (strip->input2->flag &
SEQ_SELECT)) {
731 if (!either_handle_selected) {
733 scene, strip, group_delta ? *group_delta : (snap_frame - strip->left_handle()));
750 int snap_frame = scene->
r.
cfra;
768 ot->
name =
"Snap Strips to the Current Frame";
769 ot->
idname =
"SEQUENCER_OT_snap";
771 "Snap strips to the current frame, using the active (or closest) strip as the anchor, and "
772 "the mouse cursor relative to the playhead to determine the side of the playhead to snap to";
788 "Frame where selected strips will be snapped",
799 "Which side of the playhead strips should snap to when no handles are selected");
807 "Whether the selection should be snapped as a whole or by each individual strip");
857 {0,
nullptr, 0,
nullptr,
nullptr},
884 if (
data->can_clamp) {
887 if (
data->clamp_warning) {
888 status.
item(
TIP_(
"Not enough content to clamp strip(s)"), ICON_STATUS_WARNING_FILLED);
897 if (area ==
nullptr) {
908 int frame_offset = std::trunc(offset);
909 if (
data->show_subframe) {
910 float subframe_offset_sec = (offset - std::trunc(offset)) / scene->frames_per_second();
912 IFACE_(
"Slip Offset: Frames: %d Sound Offset: %.3f"),
914 subframe_offset_sec);
940 for (
Strip *connection : connections) {
941 strips.
add(connection);
955 MEM_SAFE_DELETE(
data);
958 data->strips = strips;
960 data->show_subframe =
false;
961 data->clamp_warning =
false;
962 data->can_clamp =
false;
965 data->clamp = clamp_default;
967 for (
Strip *strip : strips) {
971 if (clamp_default && (strip->startofs < 0 || strip->end_offset() < 0)) {
976 if (strip->content_length() < strip->right_handle(scene) - strip->left_handle()) {
977 data->clamp_warning =
true;
981 data->can_clamp =
true;
984 data->show_subframe =
true;
998 if (
data ==
nullptr) {
1005 v2d, event->
mval[0], event->
mval[1], &
data->init_mouse_co[0], &
data->init_mouse_co[1]);
1006 data->precision =
false;
1007 data->prev_offset = 0.0f;
1008 data->prev_mval_x =
event->mval[0];
1009 data->virtual_mval_x =
event->mval[0];
1030 float new_offset =
data->prev_offset + delta;
1033 int frame_delta = std::trunc(new_offset) - std::trunc(
data->prev_offset);
1035 float subframe_delta = 0.0f;
1037 if (std::trunc(delta) != delta) {
1040 subframe_delta = delta - frame_delta;
1050 if (
data->clamp ==
true) {
1051 if (strip->left_handle() == strip->content_start()) {
1054 if (strip->right_handle(scene) == strip->content_end(scene)) {
1063 data->prev_offset = new_offset;
1073 strip->runtime->flag &=
~seq::StripRuntimeFlag::ShowOffsets;
1076 MEM_SAFE_DELETE(
data);
1091 float offset_delta = *r_offset -
data->prev_offset;
1093 if (
data->can_clamp) {
1095 const float unclamped_start = strip->content_start() + strip->sound_offset + offset_delta;
1096 const float unclamped_end = strip->content_end(scene) + strip->sound_offset + offset_delta;
1098 const float left_handle = strip->left_handle();
1099 const float right_handle = strip->right_handle(scene);
1105 if (
data->clamp && strip->content_length() >= right_handle - left_handle) {
1106 if (unclamped_start > left_handle) {
1107 diff = left_handle - unclamped_start;
1109 else if (unclamped_end < right_handle) {
1110 diff = right_handle - unclamped_end;
1116 if (unclamped_start > right_handle - 1) {
1117 diff = right_handle - 1 - unclamped_start;
1120 if (unclamped_end < left_handle + 1) {
1121 diff = left_handle + 1 - unclamped_end;
1126 offset_delta +=
diff;
1130 return offset_delta;
1138 if (
data ==
nullptr) {
1181 switch (event->
val) {
1192 if (!has_num_input) {
1193 data->precision =
true;
1197 float offset = mouse_co[0] -
data->init_mouse_co[0];
1198 float subframe_offset = offset - std::trunc(offset);
1203 if (!has_num_input) {
1204 data->precision =
false;
1223 if (!has_num_input) {
1224 float mouse_x_delta =
event->mval[0] -
data->prev_mval_x;
1225 data->prev_mval_x += mouse_x_delta;
1226 if (
data->precision) {
1227 mouse_x_delta *= 0.1f;
1229 data->virtual_mval_x += mouse_x_delta;
1233 float offset = mouse_co[0] -
data->init_mouse_co[0];
1234 if (!
data->precision) {
1235 offset = std::trunc(offset);
1238 float clamped_offset = offset;
1258 ot->
name =
"Slip Strips";
1259 ot->
idname =
"SEQUENCER_OT_slip";
1260 ot->
description =
"Slip the contents of selected strips";
1280 "Offset to the data of the strip",
1288 "Move the keyframes alongside the media");
1290 "use_cursor_position",
1292 "Use Cursor Position",
1293 "Slip strips under mouse cursor instead of all selected strips");
1295 "ignore_connections",
1297 "Ignore Connections",
1298 "Do not slip connected strips if using cursor position");
1312 for (
Strip *strip : strips) {
1338 ot->
name =
"Mute Strips";
1339 ot->
idname =
"SEQUENCER_OT_mute";
1350 ot->
srna,
"unselected",
false,
"Unselected",
"Mute unselected rather than selected strips");
1366 for (
Strip &strip : *
ed->current_strips()) {
1398 ot->
name =
"Unmute Strips";
1399 ot->
idname =
"SEQUENCER_OT_unmute";
1413 "Unmute unselected rather than selected strips");
1427 for (
Strip &strip : *
ed->current_strips()) {
1441 ot->
name =
"Lock Strips";
1442 ot->
idname =
"SEQUENCER_OT_lock";
1443 ot->
description =
"Lock strips so they cannot be transformed";
1464 for (
Strip &strip : *
ed->current_strips()) {
1478 ot->
name =
"Unlock Strips";
1479 ot->
idname =
"SEQUENCER_OT_unlock";
1480 ot->
description =
"Unlock strips so they can be transformed";
1522 ot->
name =
"Connect Strips";
1523 ot->
idname =
"SEQUENCER_OT_connect";
1524 ot->
description =
"Link selected strips together for simplified group selection";
1557 ot->
name =
"Disconnect Strips";
1558 ot->
idname =
"SEQUENCER_OT_disconnect";
1559 ot->
description =
"Unlink selected strips so that they can be selected individually";
1581 for (
Strip &strip : *
ed->current_strips()) {
1586 reloaded_strips.
add(&strip);
1590 if (adjust_length) {
1604 ot->
name =
"Reload Strips";
1605 ot->
idname =
"SEQUENCER_OT_reload";
1606 ot->
description =
"Reload strips in the sequencer";
1619 "Adjust length of strips to their data length");
1631 if (
G.is_rendering) {
1651 ot->
name =
"Refresh Sequencer";
1652 ot->
idname =
"SEQUENCER_OT_refresh_all";
1668 if (have_inputs > 2) {
1669 BKE_report(reports,
RPT_ERROR,
"Cannot apply effect to more than 2 strips with video content");
1672 if (num_inputs == 2 && have_inputs != 2) {
1673 BKE_report(reports,
RPT_ERROR,
"Exactly 2 selected strips with video content are needed");
1676 if (num_inputs == 1 && have_inputs != 1) {
1677 BKE_report(reports,
RPT_ERROR,
"Exactly one selected strip with video content is needed");
1693 if (ignore_active) {
1697 inputs.
remove_if([&](
Strip *strip) {
return strip == active_strip; });
1703 Strip *first = inputs[0];
1704 Strip *second = inputs[1];
1709 (ignore_active && first->channel < second->channel))
1725 const int num_inputs = active_strip->effect_num_inputs_get();
1727 if (num_inputs == 0) {
1738 Strip *input1 = inputs[0];
1739 Strip *input2 = inputs.
size() == 2 ? inputs[1] :
nullptr;
1749 active_strip->input1 = input1;
1750 active_strip->input2 = input2;
1752 int old_start = active_strip->start;
1758 input1->left_handle_set(scene, input1->left_handle());
1775 ot->
name =
"Reassign Inputs";
1776 ot->
idname =
"SEQUENCER_OT_reassign_inputs";
1777 ot->
description =
"Reassign the inputs for the effect strip";
1798 if (!active_strip->is_effect()) {
1803 if (active_strip->effect_num_inputs_get() != 2 || active_strip->input1 ==
nullptr ||
1804 active_strip->input2 ==
nullptr)
1810 Strip *strip = active_strip->input1;
1811 active_strip->input1 = active_strip->input2;
1812 active_strip->input2 = strip;
1822 ot->
name =
"Swap Inputs";
1823 ot->
idname =
"SEQUENCER_OT_swap_inputs";
1824 ot->
description =
"Swap the two inputs of the effect strip";
1843 {0,
nullptr, 0,
nullptr,
nullptr},
1849 {0,
nullptr, 0,
nullptr,
nullptr},
1858 {0,
nullptr, 0,
nullptr,
nullptr},
1893 bool changed =
false;
1894 bool failed =
false;
1911 const bool ignore_connections = split_at_cursor && !all_channels &&
1914 if (!ignore_connections) {
1919 const std::optional<int> channel = (split_at_cursor && !all_channels) ?
1920 std::optional<int>(split_channel) :
1923 scene, split_frame, channel, only_selected);
1924 if (strips.
is_empty() && only_selected &&
1933 const char *error_msg =
nullptr;
1936 bmain, scene,
ed->current_strips(), strips, split_frame, method, include, &error_msg)
1938 if (error_msg !=
nullptr) {
1948 if (strip.left_handle() >= split_frame) {
1953 if (strip.right_handle(scene) <= split_frame) {
1977 int split_frame = scene->
r.
cfra;
1993 std::optional<int>(mouseloc[1]);
2023 if (split_at_cursor) {
2031 if (split_at_cursor) {
2042 ot->
name =
"Split Strips";
2043 ot->
idname =
"SEQUENCER_OT_split";
2044 ot->
description =
"Split the selected strips in two";
2062 "Frame where selected strips will be split",
2072 "Initial channel used for the split, which may propagate to channels of "
2073 "effects, connections, or all other channels",
2083 "The type of split operation to perform on strips");
2086 "use_cursor_position",
2089 "Split at the position of the mouse cursor instead of the current frame");
2096 "Split strips in all channels at the split frame, not only the one under "
2100 RNA_def_boolean(ot->
srna,
"only_selected",
false,
"Only Selected",
"Only split selected strips");
2105 "Deprecated, will be removed in 6.0. Use only_selected instead");
2113 "The side that remains selected after splitting");
2118 "ignore_connections",
2120 "Ignore Connections",
2121 "Don't propagate split to connected strips");
2154 ed->edit_point_set(scene, std::nullopt);
2163 if (!ignore_connections) {
2173 auto strips_to_split_get = [&](
const bool selected) {
2180 box_strips.
append(strip);
2190 if (only_selected && strips_to_split.
is_empty() && !strips_to_split_get(
false).is_empty()) {
2197 for (
Strip *strip : strips_to_split) {
2198 gap_removal_boundary[0] =
math::min(gap_removal_boundary[0], strip->left_handle());
2199 gap_removal_boundary[1] =
math::max(gap_removal_boundary[1], strip->right_handle(scene));
2202 const char *error_msg =
nullptr;
2206 ed->current_strips(),
2215 if (rect_frames[0] == rect_frames[1]) {
2221 strips_to_split = strips_to_split_get(only_selected);
2224 ed->current_strips(),
2233 for (
Strip *strip : strips_to_split_get(only_selected)) {
2234 if (strip->left_handle() >= rect_frames[0] && strip->right_handle(scene) <= rect_frames[1]) {
2235 to_remove.
add(strip);
2239 if (to_remove.
size() == 0) {
2243 for (
Strip *strip : to_remove) {
2246 if (!ignore_connections) {
2248 for (
Strip *connection : connections) {
2249 if (!only_selected || (connection->flag &
SEQ_SELECT)) {
2260 gap_removal_boundary[0] =
math::max(gap_removal_boundary[0], rect_frames[0]);
2261 gap_removal_boundary[1] =
math::min(gap_removal_boundary[1], rect_frames[1]);
2263 int offset = gap_removal_boundary[0] - gap_removal_boundary[1];
2271 for (
Strip *strip : strips) {
2278 if (strip->channel <
int(box_rect.
ymax) && strip->channel >=
int(box_rect.
ymin) &&
2279 (strip->left_handle() > rect_frames[0]))
2281 to_offset.
add(strip);
2287 for (
Strip *strip : to_offset) {
2318 scene->
ed->edit_point_set(scene, mouse_frame);
2323 scene->
ed->edit_point_set(scene, std::nullopt);
2340 scene->
ed->edit_point_set(
2341 scene, (mouse_frame ==
int(box_rect.
xmin)) ?
int(box_rect.
xmax) :
int(box_rect.
xmin));
2344 return gesture_return;
2350 if (scene && scene->
ed) {
2351 scene->
ed->edit_point_set(scene, std::nullopt);
2359 ot->
name =
"Box Blade";
2360 ot->
idname =
"SEQUENCER_OT_box_blade";
2361 ot->
description =
"Draw a box around the parts of strips you want to cut away";
2381 "The type of split operation to perform on strips");
2382 RNA_def_boolean(ot->
srna,
"only_selected",
false,
"Only Selected",
"Only split selected strips");
2388 "Deprecated, will be removed in 6.0. Use only_selected instead");
2391 "ignore_connections",
2393 "Ignore Connections",
2394 "Don't propagate split to connected strips");
2399 "In box blade mode, close gaps between cut strips, rippling later strips on the "
2415 for (
Strip &strip : *duplicated_strips) {
2416 switch (strip.type) {
2419 scenes.
add(strip.scene);
2424 movieclips.
add(strip.clip);
2429 masks.
add(strip.mask);
2437 const int num_scenes = scenes.
size();
2438 const int num_movieclips = movieclips.
size();
2439 const int num_masks = masks.
size();
2441 if (num_scenes == 0 && num_movieclips == 0 && num_masks == 0) {
2448 report += fmt::format(
"{}{} {}",
2455 if (num_movieclips) {
2456 report += fmt::format(
"{}{} {}",
2464 report += fmt::format(
"{}{} {}",
2484 if (
ed ==
nullptr) {
2489 ListBaseT<Strip> duplicated_strips = {
nullptr,
nullptr};
2494 for (
Strip &strip : *
ed->current_strips()) {
2496 !strip.intersects_frame(scene, scene->
r.
cfra))
2507 bmain, scene, scene, &duplicated_strips,
ed->current_strips(), dupe_flag, 0);
2510 if (duplicated_strips.first() ==
nullptr) {
2528 Strip *strip_last = seqbase->last();
2536 for (
Strip *strip = strip_last->next; strip; strip = strip->next) {
2537 if (active_strip !=
nullptr &&
STREQ(strip->name, active_strip->name)) {
2550 for (
Strip *strip = strip_last->next; strip; strip = strip->next) {
2552 strip->runtime->flag &=
~seq::StripRuntimeFlag::IgnoreChannelLock;
2569 ot->
name =
"Duplicate Strips";
2570 ot->
idname =
"SEQUENCER_OT_duplicate";
2571 ot->
description =
"Duplicate the selected strips";
2584 "Duplicate strip but not strip data, linking to the original data");
2644 ListBaseT<TimeMarker> *markers = &scene->
markers;
2646 if (!markers->is_empty()) {
2651 if (event->
mval[1] <= 30) {
2663 ot->
name =
"Delete Strips";
2664 ot->
idname =
"SEQUENCER_OT_delete";
2665 ot->
description =
"Delete selected strips from the sequencer";
2680 "After removing the Strip, delete the associated data also");
2699 "Ripple strips on other channels too, else only strips on the same "
2700 "channels as the edited strips");
2706 ot->
srna,
"markers",
true,
"Markers",
"Ripple markers along with strips");
2716 "Delete strip contents inside the removed ranges on rippled channels so later strips "
2717 "close the full gap, else ripple later strips only as far as they can");
2726 "Split strips at the leftmost edited handle and push the remainder "
2727 "aside, else ripple only as far as needed to resolve the overlap");
2735 if (scene ==
nullptr) {
2763 ListBaseT<Strip> *seqbasep,
2764 const ListBaseT<SeqTimelineChannel> *channels,
2766 const bool all_channels)
2769 for (
Strip &strip : *seqbasep) {
2773 if (strip.left_handle() >= range.
end || strip.right_handle(scene) <= range.
start) {
2783 for (
Strip *strip : to_edit) {
2784 const bool covers_left = range.
start <= strip->left_handle();
2785 const bool covers_right = range.
end >= strip->right_handle(scene);
2787 if (covers_left && covers_right) {
2790 else if (covers_left) {
2791 strip->left_handle_set(scene, range.
end);
2793 else if (covers_right) {
2794 strip->right_handle_set(scene, range.
start);
2799 const char *error_msg =
nullptr;
2802 if (right_strip !=
nullptr) {
2803 right_strip->left_handle_set(scene, range.
end);
2809 for (
Strip *strip : to_remove) {
2818 const bool all_channels)
2821 return !channel->is_locked() &&
2826 ListBaseT<Strip> *seqbasep,
2827 const ListBaseT<SeqTimelineChannel> *channels,
2829 const bool all_channels)
2834 for (
Strip &strip : *seqbasep) {
2842 const int end =
math::min(strip.right_handle(scene), range.
end);
2844 occupied_ranges.
append({start, end});
2847 std::ranges::sort(occupied_ranges,
2852 int frame = range.
start;
2853 for (
const Bounds<int> &occupied_range : occupied_ranges) {
2854 if (occupied_range.min > frame) {
2855 gaps.append({frame, occupied_range.min});
2857 frame =
math::max(frame, occupied_range.max);
2860 if (frame < range.
end) {
2861 gaps.append({frame, range.
end});
2867 ListBaseT<Strip> *seqbasep,
2868 const ListBaseT<SeqTimelineChannel> *channels,
2876 for (
const Bounds<int> &gap : gaps | std::views::reverse) {
2877 const int offset = gap.max - gap.min;
2879 for (
Strip &strip : *seqbasep) {
2880 if (strip.left_handle() >= gap.max &&
2888 auto ripple_frame = [&](
int &frame) {
2889 if (frame >= gap.max) {
2893 else if (frame > gap.min) {
2900 ripple_frame(marker.
frame);
2904 ripple_frame(scene->
r.
cfra);
2916 const int timeline_frame = scene->
r.
cfra;
2931 for (
Strip *strip : selected) {
2947 if (scene->
r.
cfra != timeline_frame) {
2975 ot->
name =
"Ripple Delete Strips";
2976 ot->
idname =
"SEQUENCER_OT_ripple_delete";
2977 ot->
description =
"Delete selected strips and close the gaps left behind";
3006 const int timeline_frame = scene->
r.
cfra;
3017 if (active_strip ==
nullptr) {
3020 to_trim.
add(active_strip);
3025 (trim_left ? strip->left_handle() >= timeline_frame :
3026 strip->right_handle(scene) <= timeline_frame);
3038 for (
Strip *strip : to_trim) {
3042 {strip->left_handle(),
min_ii(strip->right_handle(scene), timeline_frame)});
3045 ripple_range.
end =
max_ii(ripple_range.
end, strip->right_handle(scene));
3047 {
max_ii(strip->left_handle(), timeline_frame), strip->right_handle(scene)});
3054 for (
Strip *strip : to_trim) {
3055 const bool trimmed_away = trim_left ? strip->right_handle(scene) <= timeline_frame :
3056 strip->left_handle() >= timeline_frame;
3061 else if (trim_left) {
3062 strip->left_handle_set(scene, timeline_frame);
3066 strip->right_handle_set(scene, timeline_frame);
3071 for (
Strip *strip : to_delete) {
3078 for (
const Bounds<int> &clear_range : clear_ranges) {
3082 {clear_range.min, clear_range.max, ripple_range.
channels},
3088 if (scene->
r.
cfra != timeline_frame) {
3113 ot->
name =
"Ripple Trim Strips";
3114 ot->
idname =
"SEQUENCER_OT_ripple_trim";
3115 ot->
description =
"Trim strips to the current frame and close the gaps left behind";
3131 "The side of the strips to trim to the current frame");
3151 for (strip =
ed->current_strips()->first(); strip; strip =
static_cast<Strip *
>(strip->next)) {
3156 if (!strip->is_effect() && (strip->flag &
SEQ_SELECT)) {
3157 strip->handles_set(scene, strip->content_start(), strip->content_end(scene));
3162 strip =
ed->current_strips()->first();
3165 strip = strip->next;
3169 for (strip =
ed->current_strips()->first(); strip; strip =
static_cast<Strip *
>(strip->next)) {
3170 if (!strip->is_effect() && (strip->flag &
SEQ_SELECT)) {
3171 cleared_strips.
add(strip);
3184 ot->
name =
"Clear Strip Offset";
3185 ot->
idname =
"SEQUENCER_OT_offset_clear";
3186 ot->
description =
"Clear strip in/out offsets from the start and end of content";
3209 Strip *strip, *strip_new;
3211 int start_ofs, timeline_frame, frame_end;
3214 strip = seqbase->first();
3221 (strip->content_length() > 1))
3228 start_ofs = timeline_frame = strip->left_handle();
3229 frame_end = strip->right_handle(scene);
3231 while (timeline_frame < frame_end) {
3238 strip_new->start = start_ofs;
3240 strip_new->content_length_set(1);
3242 strip_new->end_offset_set(1 -
step);
3245 strip_new->anim_startofs = 0;
3246 strip_new->anim_endofs = 0;
3260 new_strips.
add(strip_new);
3268 strip_next =
static_cast<Strip *
>(strip->next);
3273 strip = strip->next;
3291 C, op, event,
IFACE_(
"Separate Sequence Images"),
IFACE_(
"Separate"));
3297 ot->
name =
"Separate Images";
3298 ot->
idname =
"SEQUENCER_OT_images_separate";
3299 ot->
description =
"On image sequence strips, it returns a strip for each image";
3338 if (
ed->metastack.is_empty()) {
3361 ot->
name =
"Toggle Meta Strip";
3362 ot->
idname =
"SEQUENCER_OT_meta_toggle";
3363 ot->
description =
"Toggle a meta-strip (to edit enclosed strips)";
3394 int channel_max = 1, channel_min = std::numeric_limits<int>::max(), meta_start_frame =
MAXFRAME,
3395 meta_end_frame = std::numeric_limits<int>::min();
3404 for (
Strip *strip : strips_to_move) {
3408 channel_max =
max_ii(strip->channel, channel_max);
3409 channel_min =
min_ii(strip->channel, channel_min);
3410 meta_start_frame =
min_ii(strip->left_handle(), meta_start_frame);
3411 meta_end_frame =
max_ii(strip->right_handle(scene), meta_end_frame);
3416 ListBaseT<SeqTimelineChannel> *channels_meta = &strip_meta->channels;
3417 for (
int i = channel_min; i <= channel_max; i++) {
3421 channel_meta->
flag = channel_cur->
flag;
3424 const int channel = active_strip ? active_strip->channel : channel_max;
3425 strip_meta->channel_set(channel);
3428 strip_meta->start = meta_start_frame;
3429 strip_meta->content_length_set(meta_end_frame - meta_start_frame);
3432 meta_strips.
add(strip_meta);
3445 ot->
name =
"Make Meta Strip";
3446 ot->
idname =
"SEQUENCER_OT_meta_make";
3447 ot->
description =
"Group selected strips into a meta-strip";
3475 for (
Strip &strip : active_strip->seqbase) {
3486 active_strip->seqbase.clear_no_delete();
3494 for (
Strip &strip : *active_seqbase) {
3496 separated_strips.
add(&strip);
3510 ot->
name =
"UnMeta Strip";
3511 ot->
idname =
"SEQUENCER_OT_meta_separate";
3512 ot->
description =
"Put the contents of a meta-strip back in the sequencer";
3530 const bool do_skip_mute,
3531 const bool do_center)
3533 bool changed =
false;
3534 int timeline_frame = scene->
r.
cfra;
3536 scene, timeline_frame, side, do_skip_mute, do_center,
false);
3538 if (next_frame != timeline_frame) {
3539 scene->
r.
cfra = next_frame;
3549 if (
G.is_rendering) {
3578 ot->
name =
"Jump to Strip";
3579 ot->
idname =
"SEQUENCER_OT_strip_jump";
3581 "Move playhead to the next or previous edit point, which may be a strip handle or its "
3596 "Jump to the next handle or center, else the previous");
3601 "Jump to the center of the strip rather than its handles");
3613 {0,
nullptr, 0,
nullptr,
nullptr},
3618 int gap = strip_b->left_handle() - strip_a->right_handle(scene);
3622 strip_b_start = (strip_b->start - strip_b->left_handle()) + strip_a->left_handle();
3626 strip_a_start = (strip_a->start - strip_a->left_handle()) + strip_b->right_handle(scene) + gap;
3634 Strip *strip, *best_strip =
nullptr;
3637 int dist, best_dist;
3640 if (
ed ==
nullptr) {
3644 strip =
ed->current_strips()->first();
3646 if ((strip != test) && (test->channel == strip->channel) &&
3647 ((sel == -1) || (sel == (strip->flag &
SEQ_SELECT))))
3653 if (strip->right_handle(scene) <= test->left_handle()) {
3654 dist = test->right_handle(scene) - strip->left_handle();
3658 if (strip->left_handle() >= test->right_handle(scene)) {
3659 dist = strip->left_handle() - test->right_handle(scene);
3670 if (dist < best_dist) {
3675 strip =
static_cast<Strip *
>(strip->next);
3682 return ((par->input1 == strip) || (par->input2 == strip));
3694 if (active_strip ==
nullptr) {
3703 if (strip->is_effect_with_inputs() && (strip->effectdata || strip->input1 || strip->input2)) {
3706 if (active_strip->is_effect_with_inputs() &&
3707 (active_strip->effectdata || active_strip->input1 || active_strip->input2))
3732 for (
Strip &istrip : *seqbase) {
3733 if (istrip.is_effect() &&
3751 ot->
name =
"Swap Strip";
3752 ot->
idname =
"SEQUENCER_OT_swap";
3753 ot->
description =
"Swap active strip with strip to the right or left";
3768 "Side of the strip to swap");
3782 if (active_strip ==
nullptr || active_strip->
data ==
nullptr ||
3792 if (size.x <= 0 || size.y <= 0) {
3796 scene->
r.
xsch = size.x;
3797 scene->
r.
ysch = size.y;
3799 active_strip->
data->transform->scale_x = active_strip->
data->transform->scale_y = 1.0f;
3800 active_strip->
data->transform->xofs = active_strip->
data->transform->yofs = 0.0f;
3805 *
static_cast<TextVars *
>(active_strip->effectdata), old_size, size);
3818 ot->
name =
"Set Render Size";
3819 ot->
idname =
"SEQUENCER_OT_rendersize";
3820 ot->
description =
"Set render size and aspect from active strip";
3840 ot->
idname =
"SEQUENCER_OT_copy";
3841 ot->
description =
"Copy the selected strips to the internal clipboard";
3861 ot->
idname =
"SEQUENCER_OT_paste";
3862 ot->
description =
"Paste strips from the internal clipboard";
3878 "Keep strip offset relative to the current frame when pasting");
3897 const char *error_msg;
3909 strip_act->runtime->remove_scene_sound(scene);
3910 strip_other->runtime->remove_scene_sound(scene);
3912 strip_act->runtime->clear_sound_time_stretch();
3913 strip_other->runtime->clear_sound_time_stretch();
3915 if (strip_act->sound) {
3918 if (strip_other->sound) {
3933 ot->
name =
"Sequencer Swap Data";
3934 ot->
idname =
"SEQUENCER_OT_swap_data";
3952 {
STRIP_TYPE_CROSS,
"CROSS", 0,
"Crossfade",
"Fade out of one video, fading into another"},
3953 {
STRIP_TYPE_ADD,
"ADD", 0,
"Add",
"Add together color channels from two videos"},
3954 {
STRIP_TYPE_SUB,
"SUBTRACT", 0,
"Subtract",
"Subtract one strip's color from another"},
3957 {
STRIP_TYPE_GAMCROSS,
"GAMMA_CROSS", 0,
"Gamma Crossfade",
"Crossfade with color correction"},
3958 {
STRIP_TYPE_MUL,
"MULTIPLY", 0,
"Multiply",
"Multiply color channels from two videos"},
3959 {
STRIP_TYPE_WIPE,
"WIPE", 0,
"Wipe",
"Sweep a transition line across the frame"},
3960 {
STRIP_TYPE_GLOW,
"GLOW", 0,
"Glow",
"Add blur and brightness to light areas"},
3962 {
STRIP_TYPE_SPEED,
"SPEED", 0,
"Speed",
"Timewarp video strips, modifying playback speed"},
3963 {
STRIP_TYPE_MULTICAM,
"MULTICAM", 0,
"Multicam Selector",
"Control active camera angles"},
3967 {
STRIP_TYPE_COLORMIX,
"COLORMIX", 0,
"Color Mix",
"Combine two strips using blend modes"},
3969 {0,
nullptr, 0,
nullptr,
nullptr},
3977 const int have_inputs = strip->effect_num_inputs_get();
3980 if (!strip->is_effect()) {
3995 strip->
type = new_type;
4019 ot->
name =
"Change Effect Type";
4020 ot->
idname =
"SEQUENCER_OT_change_effect_type";
4021 ot->
description =
"Replace effect strip with another that takes the same number of inputs";
4035 "Strip effect type");
4064 blendfile_path, blendfile_path, op,
false);
4066 len += use_placeholders ? range.max_framenr - range.offset + 1 : range.frames.count();
4074 if (is_relative_path) {
4082 if (strip->
data->stripdata) {
4083 MEM_delete(strip->
data->stripdata);
4085 strip->
data->stripdata = se = MEM_new_array<StripElem>(
len,
"stripelem");
4086 strip->
data->stripdata_num =
len;
4089 int framenr, numdigits;
4098 if (use_placeholders) {
4116 range.frames.free_no_destruct();
4118 ranges.free_no_destruct();
4128 strip->anim_startofs = strip->anim_endofs = 0;
4135 bSound *sound = strip->sound;
4136 if (sound ==
nullptr) {
4172 filepath,
sizeof(filepath), strip->
data->dirpath, strip->
data->stripdata->filename);
4196 if (prop_id ==
StringRef(
"use_placeholders")) {
4204 uiDefAutoButsRNA(op->
layout,
4216 ot->
name =
"Change Data/Files";
4217 ot->
idname =
"SEQUENCER_OT_change_path";
4240 "use_sequence_detection",
4243 "Automatically detect animated sequences in selected images (based on file names)");
4249 "Use placeholders for missing frames of the strip");
4261 if (
ed ==
nullptr) {
4274 if (scene_seq ==
nullptr) {
4282 strip->scene = scene_seq;
4311 ot->
name =
"Change Scene";
4312 ot->
idname =
"SEQUENCER_OT_change_scene";
4313 ot->
description =
"Change Scene assigned to Strip";
4340 const Strip *strip_a =
static_cast<const Strip *
>(a);
4341 const Strip *strip_b =
static_cast<const Strip *
>(
b);
4343 int strip_a_start = strip_a->left_handle();
4344 int strip_b_start = strip_b->left_handle();
4347 if (strip_a_start == strip_b_start) {
4348 return strip_a->channel > strip_b->channel;
4351 return (strip_a_start > strip_b_start);
4391 Strip *strip, *strip_next;
4393 ListBaseT<Strip> text_seq = {
nullptr};
4419 if (
ed !=
nullptr) {
4424 if (text_seq.is_empty()) {
4434 for (strip = text_seq.first(); strip; strip = strip_next) {
4436 char timecode_str_start[32];
4437 char timecode_str_end[32];
4441 sizeof(timecode_str_start),
4444 scene->frames_per_second(),
4447 sizeof(timecode_str_end),
4450 scene->frames_per_second(),
4454 "%d\n%s --> %s\n%s\n\n",
4460 strip_next =
static_cast<Strip *
>(strip->next);
4490 ot->
name =
"Export Subtitles";
4491 ot->
idname =
"SEQUENCER_OT_export_subtitles";
4492 ot->
description =
"Export .srt file containing text strips";
4524 bool selected =
false;
4527 for (
Strip &strip : *
ed->current_strips()) {
4530 sfra =
min_ii(sfra, strip.left_handle());
4534 efra =
max_ii(efra, strip.right_handle(scene) - 1);
4555 scene->
r.
efra = efra;
4569 ot->
name =
"Set Range to Strips";
4570 ot->
idname =
"SEQUENCER_OT_set_range_to_strips";
4571 ot->
description =
"Set the frame range to the selected strips start and end";
4580 prop =
RNA_def_boolean(ot->
srna,
"preview",
false,
"Preview",
"Set the preview range instead");
4601 {
STRIP_TRANSFORM_ALL,
"ALL", 0,
"All",
"Reset strip transform location, scale and rotation"},
4602 {0,
nullptr, 0,
nullptr,
nullptr},
4614 for (
Strip &strip : *
ed->current_strips()) {
4623 if (use_autokeyframe) {
4626 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4629 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4635 if (use_autokeyframe) {
4638 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4641 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4646 if (use_autokeyframe) {
4649 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4658 if (use_autokeyframe) {
4661 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4664 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4667 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4670 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4673 C, scene, &ptr, prop, -1, scene->
r.
cfra, only_when_keyed);
4688 ot->
name =
"Clear Strip Transform";
4689 ot->
idname =
"SEQUENCER_OT_strip_transform_clear";
4690 ot->
description =
"Reset image transformation to default value";
4704 "Strip transform property to be reset");
4719 for (
Strip &strip : *
ed->current_strips()) {
4734 ot->
name =
"Strip Transform Set Fit";
4735 ot->
idname =
"SEQUENCER_OT_strip_transform_fit";
4749 "Mode for fitting the image to the canvas");
4763 for (
Strip *strip : selected) {
4764 strip->color_tag = color_tag;
4776 return TIP_(
"Remove Color Tag");
4787 return TIP_(
"Remove color tag from the selected strips");
4795 ot->
name =
"Set Color Tag";
4796 ot->
idname =
"SEQUENCER_OT_strip_color_tag_set";
4797 ot->
description =
"Set a color tag for the selected strips";
4813 "Color used to tag strips for organizing them in the timeline");
4827 float cursor_pixel[2];
4844 float cursor_pixel[2];
4846 ®ion->
v2d, event->
mval[0], event->
mval[1], &cursor_pixel[0], &cursor_pixel[1]);
4856 ot->
name =
"Set 2D Cursor";
4858 ot->
idname =
"SEQUENCER_OT_cursor_set";
4876 "Cursor location in normalized preview coordinates",
4891 "SEQUENCER_OT_scene_frame_range_update is deprecated and will be removed in 6.0. "
4892 "Operator has no effect.");
4907 ot->
name =
"Update Scene Frame Range";
4909 "Update frame range of scene strip. Deprecated. Has no effect, will be removed in 6.0.";
4910 ot->
idname =
"SEQUENCER_OT_scene_frame_range_update";
Functions to work with AnimData.
File and directory operations.
#define BLI_path_join(...)
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_ID_SEQUENCE
#define CTX_IFACE_(context, msgid)
#define CLOG_WARN(clg_ref,...)
#define ID_IS_EDITABLE(_id)
#define STRIP_HAS_PATH(_strip)
#define FRAMENUMBER_MIN_CLAMP(cfra)
Read Blender memory allocation and freeing.
#define ND_SPACE_SEQUENCER
#define ND_RENDER_OPTIONS
#define SET_FLAG_FROM_TEST(value, test, flag)
#define MEM_realloc_uninitialized(vmemh, len)
static constexpr IndexRange from_begin_end(const int64_t begin, const int64_t end)
void add_multiple(Span< Key > keys)
int64_t remove_if(Predicate &&predicate)
void append(const T &value)
void item(std::string text, int icon1, int icon2=0)
void opmodal(std::string text, const wmOperatorType *ot, int propvalue, bool inverted=false)
const T & data(const Action &owning_action) const
CCL_NAMESPACE_BEGIN struct Options options
IMETHOD Vector diff(const Vector &a, const Vector &b, double dt)
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
bool is_autokey_on(const Scene *scene)
Span< FCurve * > fcurves_for_assigned_action(AnimData *adt)
bool autokeyframe_property(bContext *C, Scene *scene, PointerRNA *ptr, PropertyRNA *prop, int rnaindex, float cfra, bool only_if_property_keyed)
bool is_keying_flag(const Scene *scene, eKeying_Flag flag)
bool mode_set(bContext *C, eObjectMode mode)
static wmOperatorStatus sequencer_split_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus sequencer_scene_frame_range_update_exec(bContext *, wmOperator *)
static wmOperatorStatus sequencer_unmute_exec(bContext *C, wmOperator *op)
VectorSet< Strip * > selected_strips_from_context(bContext *C)
static float slip_apply_clamp(const Scene *scene, const SlipData *data, float *r_offset)
void SEQUENCER_OT_meta_toggle(wmOperatorType *ot)
static void slip_update_header(const Scene *scene, ScrArea *area, SlipData *data, const float offset)
static eSeqRippleFlag ripple_flag_from_properties(wmOperator *op)
static bool sequencer_box_blade_poll(bContext *C)
bool sequencer_edit_poll(bContext *C)
void SEQUENCER_OT_meta_make(wmOperatorType *ot)
static void sequencer_split_ui(bContext *, wmOperator *op)
static wmOperatorStatus sequencer_slip_modal(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus sequencer_export_subtitles_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_images_separate(wmOperatorType *ot)
void SEQUENCER_OT_snap(wmOperatorType *ot)
static bool sequencer_strip_change_scene_poll(bContext *C)
void SEQUENCER_OT_swap_inputs(wmOperatorType *ot)
static wmOperatorStatus sequencer_split_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_add_duplicate_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_export_subtitles_invoke(bContext *C, wmOperator *op, const wmEvent *)
const EnumPropertyItem prop_snap_side_types[]
static wmOperatorStatus sequencer_delete_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void SEQUENCER_OT_offset_clear(wmOperatorType *ot)
static void sequencer_delete_strip_data(bContext *C, Strip *strip)
static void ripple_properties_from_tool_settings(bContext *C, wmOperator *op)
void SEQUENCER_OT_box_blade(wmOperatorType *ot)
static wmOperatorStatus sequencer_box_blade_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_box_blade_modal(bContext *C, wmOperator *op, const wmEvent *event)
static void slip_cleanup(bContext *C, wmOperator *op, Scene *scene)
bool has_playback_animation(const Scene *scene)
rctf strip_bounds_get(const Scene *scene, const Strip *strip)
bool check_show_strip(const SpaceSeq &sseq)
void SEQUENCER_OT_copy(wmOperatorType *ot)
static wmOperatorStatus sequencer_mute_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_separate_images_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus sequencer_clipboard_copy_exec(bContext *C, wmOperator *op)
void operator_properties_ripple(wmOperatorType *ot, eSeqRippleFlag options)
static wmOperatorStatus sequencer_gap_insert_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_ripple_trim_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_gap_remove(wmOperatorType *ot)
static std::string sequencer_strip_color_tag_set_get_name(wmOperatorType *ot, PointerRNA *properties)
static void slip_handle_num_input(bContext *C, wmOperator *op, ScrArea *area, SlipData *data, Scene *scene)
static wmOperatorStatus sequencer_ripple_delete_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_ripple_delete_invoke(bContext *C, wmOperator *op, const wmEvent *)
void SEQUENCER_OT_gap_insert(wmOperatorType *ot)
static wmOperatorStatus sequencer_separate_images_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_change_scene(wmOperatorType *ot)
static wmOperatorStatus sequencer_swap_inputs_exec(bContext *C, wmOperator *op)
static void ripple_range_clear(Scene *scene, ListBaseT< Strip > *seqbasep, const ListBaseT< SeqTimelineChannel > *channels, const seq::RippleRange &range, const bool all_channels)
void SEQUENCER_OT_refresh_all(wmOperatorType *ot)
static wmOperatorStatus sequencer_change_path_exec(bContext *C, wmOperator *op)
bool is_scene_time_sync_needed(const bContext &C)
static const EnumPropertyItem transform_reset_properties[]
static wmOperatorStatus sequencer_reload_exec(bContext *C, wmOperator *op)
static bool sequencer_strip_is_text_poll(bContext *C)
void SEQUENCER_OT_strip_transform_clear(wmOperatorType *ot)
static wmOperatorStatus sequencer_snap_exec(bContext *C, wmOperator *op)
static std::string sequencer_strip_color_tag_set_get_description(bContext *, wmOperatorType *ot, PointerRNA *properties)
const Strip * get_scene_strip_for_time_sync(const Scene *sequencer_scene)
void SEQUENCER_OT_lock(wmOperatorType *ot)
static wmOperatorStatus sequencer_delete_exec(bContext *C, wmOperator *op)
void sequencer_blade_tooltip_show(bContext *C)
const EnumPropertyItem sequencer_prop_effect_types[]
static wmOperatorStatus sequencer_set_2d_cursor_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_set_2d_cursor_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void SEQUENCER_OT_mute(wmOperatorType *ot)
static SlipData * slip_data_init(bContext *C, const wmOperator *op, const wmEvent *event)
static wmOperatorStatus sequencer_change_scene_exec(bContext *C, wmOperator *op)
static const EnumPropertyItem prop_side_lr_types[]
static wmOperatorStatus sequencer_refresh_all_exec(bContext *C, wmOperator *)
bool maskedit_poll(bContext *C)
bool sequencer_editing_initialized_and_active(bContext *C)
static wmOperatorStatus sequencer_gap_remove_exec(bContext *C, wmOperator *op)
static void sequencer_report_duplicates(wmOperator *op, ListBaseT< Strip > *duplicated_strips)
static bool sequencer_fcurves_targets_color_strip(const FCurve *fcurve)
void sync_active_scene_and_time_with_scene_strip(bContext &C)
static Strip * find_next_prev_strip(Scene *scene, Strip *test, seq::Side lr, int sel)
static bool strip_get_text_strip_cb(Strip *strip, void *user_data)
static wmOperatorStatus sequencer_slip_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus sequencer_change_path_invoke(bContext *C, wmOperator *op, const wmEvent *)
void SEQUENCER_OT_strip_color_tag_set(wmOperatorType *ot)
VectorSet< Strip * > strip_effect_get_new_inputs(const Scene *scene, StripType effect_type, bool ignore_active)
void SEQUENCER_OT_ripple_trim(wmOperatorType *ot)
void SEQUENCER_OT_slip(wmOperatorType *ot)
static wmOperatorStatus sequencer_disconnect_exec(bContext *C, wmOperator *)
void SEQUENCER_OT_unmute(wmOperatorType *ot)
static bool strip_jump_internal(Scene *scene, const seq::Side side, const bool do_skip_mute, const bool do_center)
static void sequencer_box_blade_ui(bContext *, wmOperator *op)
static wmOperatorStatus sequencer_change_effect_type_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_connect(wmOperatorType *ot)
static wmOperatorStatus sequencer_strip_transform_fit_exec(bContext *C, wmOperator *op)
static seq::Side sequence_split_side_for_exec_get(wmOperator *op)
void SEQUENCER_OT_change_effect_type(wmOperatorType *ot)
void SEQUENCER_OT_paste(wmOperatorType *ot)
bool effect_inputs_validate(int have_inputs, int num_inputs, ReportList *reports)
bool sequencer_edit_with_channel_region_poll(bContext *C)
Strip * strip_under_mouse_get(const Scene *scene, const View2D *v2d, const int mval[2])
static wmOperatorStatus sequencer_meta_separate_exec(bContext *C, wmOperator *)
rctf box_blade_rect_get(wmOperator *op, const View2D *v2d)
bool sequencer_strip_editable_and_selected_poll(bContext *C)
void SEQUENCER_OT_rendersize(wmOperatorType *ot)
void SEQUENCER_OT_scene_frame_range_update(wmOperatorType *ot)
static Scene * get_sequencer_scene_for_time_sync(const bContext &C)
void sequencer_select_do_updates(const bContext *C, Scene *scene)
void SEQUENCER_OT_reload(wmOperatorType *ot)
void SEQUENCER_OT_strip_transform_fit(wmOperatorType *ot)
bool sequencer_view_preview_only_poll(const bContext *C)
void frame_filename_set(char *dst, size_t dst_maxncpy, const char *filename_stripped, const int frame, const int numdigits, const char *ext)
bool sequencer_strip_editable_poll(bContext *C)
void SEQUENCER_OT_change_path(wmOperatorType *ot)
static wmOperatorStatus sequencer_rendersize_exec(bContext *C, wmOperator *)
static void slip_strips_delta(bContext *C, wmOperator *op, Scene *scene, SlipData *data, const float delta)
static wmOperatorStatus sequencer_strip_jump_exec(bContext *C, wmOperator *op)
static void swap_strips(Scene *scene, Strip *strip_a, Strip *strip_b)
bool maskedit_mask_poll(bContext *C)
static wmOperatorStatus sequencer_offset_clear_exec(bContext *C, wmOperator *)
static wmOperatorStatus sequencer_connect_exec(bContext *C, wmOperator *op)
static wmOperatorStatus sequencer_meta_make_exec(bContext *C, wmOperator *)
static void sequencer_change_path_draw(bContext *, wmOperator *op)
static void slip_draw_status(bContext *C, const wmOperator *op)
void SEQUENCER_OT_set_range_to_strips(wmOperatorType *ot)
void SEQUENCER_OT_reassign_inputs(wmOperatorType *ot)
void SEQUENCER_OT_unlock(wmOperatorType *ot)
bool deselect_all_strips(const Scene *scene)
static bool sequencer_strip_jump_poll(bContext *C)
static wmOperatorStatus sequencer_set_range_to_strips_exec(bContext *C, wmOperator *op)
bool sequencer_view_has_preview_poll(bContext *C)
bool check_show_imbuf(const SpaceSeq &sseq)
static Vector< Bounds< int > > ripple_gaps_get(const Scene *scene, ListBaseT< Strip > *seqbasep, const ListBaseT< SeqTimelineChannel > *channels, const seq::RippleRange &range, const bool all_channels)
static wmOperatorStatus sequencer_reassign_inputs_exec(bContext *C, wmOperator *op)
static seq::Side mouse_frame_side_get(View2D *v2d, short mouse_x, int frame)
static wmOperatorStatus sequencer_meta_toggle_exec(bContext *C, wmOperator *)
static bool should_ripple_strip(const ListBaseT< SeqTimelineChannel > *channels, const seq::RippleRange &range, const Strip *strip, const bool all_channels)
void SEQUENCER_OT_swap(wmOperatorType *ot)
void SEQUENCER_OT_duplicate(wmOperatorType *ot)
static const EnumPropertyItem prop_split_types[]
wmOperatorStatus sequencer_clipboard_paste_exec(bContext *C, wmOperator *op)
wmOperatorStatus sequencer_clipboard_paste_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool sequencer_change_path_draw_check_prop(PointerRNA *, PropertyRNA *prop, void *user_data)
static bool sequencer_scene_frame_range_update_poll(bContext *C)
void SEQUENCER_OT_delete(wmOperatorType *ot)
static wmOperatorStatus sequencer_strip_transform_clear_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_meta_separate(wmOperatorType *ot)
static bool sequencer_effect_poll(bContext *C)
bool sequencer_view_strips_poll(bContext *C)
static wmOperatorStatus sequencer_lock_exec(bContext *C, wmOperator *)
static bool strip_is_parent(const Strip *par, const Strip *strip)
static wmOperatorStatus sequencer_ripple_trim_invoke(bContext *C, wmOperator *op, const wmEvent *)
static int strip_cmp_time_startdisp_channel(void *, const void *a, const void *b)
@ SLIP_MODAL_PRECISION_DISABLE
@ SLIP_MODAL_CLAMP_TOGGLE
@ SLIP_MODAL_PRECISION_ENABLE
const EnumPropertyItem prop_split_side_types[]
void slip_modal_keymap(wmKeyConfig *keyconf)
static wmOperatorStatus sequencer_slip_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_export_subtitles(wmOperatorType *ot)
static bool sequencer_swap_inputs_poll(bContext *C)
@ STRIP_TRANSFORM_ROTATION
@ STRIP_TRANSFORM_POSITION
void SEQUENCER_OT_ripple_delete(wmOperatorType *ot)
static void ripple_gaps_close(Scene *scene, ListBaseT< Strip > *seqbasep, const ListBaseT< SeqTimelineChannel > *channels, const seq::RippleRange &range, const eSeqRippleFlag ripple_flag)
static wmOperatorStatus sequencer_change_scene_invoke(bContext *C, wmOperator *op, const wmEvent *event)
bool split_only_selected_get(wmOperator *op)
static wmOperatorStatus sequencer_unlock_exec(bContext *C, wmOperator *)
VectorSet< Strip * > all_strips_from_context(bContext *C)
static void sequencer_box_blade_cancel(bContext *C, wmOperator *op)
bool sequencer_strip_has_path_poll(bContext *C)
static wmOperatorStatus sequencer_swap_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_swap_data(wmOperatorType *ot)
void SEQUENCER_OT_disconnect(wmOperatorType *ot)
static wmOperatorStatus sequencer_snap_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void SEQUENCER_OT_split(wmOperatorType *ot)
bool check_show_maskedit(SpaceSeq *sseq, Scene *scene)
static bool sequencer_refresh_all_poll(bContext *C)
static wmOperatorStatus sequencer_swap_data_exec(bContext *C, wmOperator *op)
void SEQUENCER_OT_cursor_set(wmOperatorType *ot)
void SEQUENCER_OT_strip_jump(wmOperatorType *ot)
static wmOperatorStatus sequencer_strip_color_tag_set_exec(bContext *C, wmOperator *op)
T min(const T &a, const T &b)
T max(const T &a, const T &b)
void prefetch_stop(Scene *scene)
Vector< RippleRange > transform_ripple_ranges_get(const Scene *scene, Span< Strip * > strips)
int2 image_transform_box_size_get(const Scene *scene, const Strip *strip)
int time_find_next_prev_edit(Scene *scene, int timeline_frame, const Side side, const bool do_skip_mute, const bool do_center, const bool do_unselected)
void effect_ensure_initialized(Strip *strip)
bool disconnect(Strip *strip)
void relations_invalidate_cache(Scene *scene, Strip *strip)
void seqbase_duplicate_recursive(Main *bmain, const Scene *scene_src, Scene *scene_dst, ListBaseT< Strip > *seqbase_dst, const ListBaseT< Strip > *seqbase_src, const StripDuplicate dupe_flag, const int copy_flag)
VectorSet< Strip * > query_selected_strips(ListBaseT< Strip > *seqbase)
bool relations_render_loop_check(Strip *strip_main, Strip *strip)
void thumbnail_cache_invalidate_strip(Scene *scene, const Strip *strip)
void transform_translate_strip(Scene *evil_scene, Strip *strip, int delta)
ListBaseT< Strip > * active_seqbase_get(const Editing *ed)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
void transform_handle_overlap(Scene *scene, ListBaseT< Strip > *seqbasep, Span< Strip * > source_strips, bool use_sync_markers, Span< Strip * > time_dependent_strips)
void strip_unique_name_set(Scene *scene, ListBaseT< Strip > *seqbasep, Strip *strip)
bool are_strips_connected_together(VectorSet< Strip * > &strip_list)
float give_frame_index(const Scene *scene, const Strip *strip, float timeline_frame)
bool render_is_muted(const ListBaseT< SeqTimelineChannel > *channels, const Strip *strip)
Editing * editing_get(const Scene *scene)
void meta_stack_set(const Scene *scene, Strip *dst)
void edit_strip_name_set(Scene *scene, Strip *strip, const char *new_name)
void edit_remove_flagged_strips(Scene *scene, ListBaseT< Strip > *seqbase)
void animation_duplicate_backup_to_scene(Scene *scene, Strip *strip, AnimationBackup *backup)
bool effect_is_transition(StripType type)
void effect_free(Strip *strip)
void offset_animdata(const Scene *scene, Strip *strip, float ofs)
Vector< Strip * > edit_split_strips_get(Scene *scene, const int frame, const std::optional< int > channel, const bool only_selected)
const char * strip_give_name(const Strip *strip)
void relations_invalidate_cache_raw(Scene *scene, Strip *strip)
void expand_strips(Editing *ed, VectorSet< Strip * > &strips, const StripRelation include)
void connect(Strip *strip1, Strip *strip2)
bool transform_single_image_check(const Strip *strip)
Vector< Strip * > edit_strips_split(Main *bmain, Scene *scene, ListBaseT< Strip > *seqbase, const Span< Strip * > strips_to_split, const int timeline_frame, const eSplitMethod method, const StripRelation include, const char **r_error)
VectorSet< Strip * > query_strips_recursive_at_frame(const Scene *scene, const ListBaseT< Strip > *seqbase, const int timeline_frame)
void add_reload_new_file(Main *bmain, Scene *scene, Strip *strip, const bool lock_range)
Strip * select_active_get(const Scene *scene)
void ensure_unique_name(Strip *strip, Scene *scene, const DriverMap &driver_map)
bool select_active_get_pair(Scene *scene, Strip **r_strip_act, Strip **r_strip_other)
void time_slip_strip(const Scene *scene, Strip *strip, int frame_delta, float subframe_delta, bool slip_keyframes)
void text_effect_adjust_relative(TextVars &text, const int2 old_size, const int2 new_size)
Strip * strip_alloc(ListBaseT< Strip > *lb, int timeline_frame, int channel, StripType type)
void relations_refresh_all(Scene *scene)
const char * get_default_stripname_by_type(int type)
void edit_flag_for_removal(Scene *scene, Strip *strip)
void animation_backup_original(Scene *scene, AnimationBackup *backup)
Strip * edit_strip_split(Main *bmain, Scene *scene, ListBaseT< Strip > *seqbase, Strip *strip, const int timeline_frame, const eSplitMethod method, const bool ignore_connections, const char **r_error)
void select_active_set(Scene *scene, Strip *strip)
SeqTimelineChannel * channel_get_by_index(const ListBaseT< SeqTimelineChannel > *channels, const int channel_index)
bool edit_remove_gaps(Scene *scene, ListBaseT< Strip > *seqbase, const int initial_frame, const bool remove_all_gaps)
bool edit_strip_swap(Scene *scene, Strip *strip_a, Strip *strip_b, const char **r_error_str)
Strip * strip_duplicate_recursive(Main *bmain, const Scene *scene_src, Scene *scene_dst, ListBaseT< Strip > *seqbase_dst, Strip *strip, const StripDuplicate dupe_flag)
VectorSet< Strip * > connected_strips_get(const Strip *strip)
void animation_restore_original(Scene *scene, AnimationBackup *backup)
void transform_strips_after_frame(Scene *scene, ListBaseT< Strip > *seqbase, const int timeline_frame, const int delta)
float2 image_preview_unit_from_px(const Scene *scene, const float2 co_src)
bool transform_strip_is_on_rippled_channel(const RippleRange &range, const Strip *strip, const bool all_channels)
eSeqRippleFlag tool_settings_ripple_flag_get(Scene *scene)
void transform_shuffle_vertical(ListBaseT< Strip > *seqbasep, Span< Strip * > strips, Scene *scene, const int channel_delta)
int effect_type_get_min_num_inputs(StripType type)
bool transform_is_locked(const ListBaseT< SeqTimelineChannel > *channels, const Strip *strip)
Strip * meta_stack_pop(Editing *ed)
ListBaseT< SeqTimelineChannel > * channels_displayed_get(const Editing *ed)
bool transform_strip_can_be_translated(const Strip *strip)
void strip_lookup_invalidate(const Editing *ed)
Mask * active_mask_get(Scene *scene)
void set_scale_to_fit(const Strip *strip, const int image_width, const int image_height, const int preview_width, const int preview_height, const eSeqImageFitMethod fit_method)
StripElem * render_give_stripelem(const Scene *scene, const Strip *strip, int timeline_frame)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
float view2d_region_to_view_x(const View2D *v2d, float x)
float view2d_scale_get_x(const View2D *v2d)
void view2d_region_to_view_rctf(const View2D *v2d, const rctf *rect_src, rctf *rect_dst) ATTR_NONNULL()
View2D * view2d_fromcontext(const bContext *C)
const char * BKE_idtype_idcode_to_name(short idcode)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
void WM_window_set_active_scene(Main *bmain, bContext *C, wmWindow *win, Scene *scene)
@ WORKSPACE_SYNC_SCENE_TIME
ScrArea * CTX_wm_area(const bContext *C)
char * STRNCPY(char(&dst)[N], const char *src)
int RNA_enum_get(PointerRNA *ptr, const char *name)
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
Scene * CTX_data_sequencer_scene(const bContext *C)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
wmKeyMap * WM_modalkeymap_find(wmKeyConfig *keyconf, const char *idname)
wmOperatorStatus WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
WorkSpace * CTX_wm_workspace(const bContext *C)
bool WM_operator_poll_or_report_error(bContext *C, wmOperatorType *ot, ReportList *reports)
MINLINE int round_fl_to_int(float a)
PointerRNA RNA_id_pointer_create(ID *id)
const char * RNA_property_identifier(const PropertyRNA *prop)
MINLINE void copy_v2_v2(float r[2], const float a[2])
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
bool BLI_exists(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
char * BLI_strncpy_utf8(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
bool RNA_struct_property_is_set_ex(PointerRNA *ptr, const char *identifier, bool use_ghost)
void void void BLI_movelisttolist(ListBase *dst, ListBase *src) ATTR_NONNULL(1
int RNA_int_get(PointerRNA *ptr, const char *name)
bool hasNumInput(const NumInput *n)
wmWindow * CTX_wm_window(const bContext *C)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
MINLINE int max_ii(int a, int b)
@ SEQ_VIEW_SEQUENCE_PREVIEW
void WM_tooltip_clear(bContext *C, wmWindow *win)
bool BLI_path_frame_get(const char *path, int *r_frame, int *r_digits_len) ATTR_NONNULL(1
ViewLayer * WM_window_get_active_view_layer(const wmWindow *win)
void WM_operator_properties_filesel(wmOperatorType *ot, const int filter, const short type, const eFileSel_Action action, const eFileSel_Flag flag, const short display, const short sort)
AUD_SequenceEntry BKE_sound_add_scene_sound(Scene *scene, Strip *strip)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
@ STRIP_TYPE_GAUSSIAN_BLUR
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
void WM_operator_properties_border_to_rctf(wmOperator *op, rctf *r_rect)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
bool BLI_path_extension_ensure(char *path, size_t path_maxncpy, const char *ext) ATTR_NONNULL(1
void CTX_wm_operator_poll_msg_set(bContext *C, const char *msg)
VecBase< int32_t, 2 > int2
Scene * WM_window_get_active_scene(const wmWindow *win)
VecBase< float, 2 > float2
void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value)
void void void BLI_listbase_sort_r(ListBase *listbase, int(*cmp)(void *, const void *, const void *), void *thunk) ATTR_NONNULL(1
ListBaseT< ImageFrameRange > ED_image_filesel_detect_sequences(StringRefNull blendfile_path, StringRefNull root_path, wmOperator *op, bool detect_udim)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
const EnumPropertyItem * RNA_scene_without_sequencer_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
wmWindowManager * CTX_wm_manager(const bContext *C)
void initNumInput(NumInput *n)
bool ED_scene_delete(bContext *C, Main *bmain, Scene *scene) ATTR_NONNULL()
void ED_fileselect_ensure_default_filepath(bContext *C, wmOperator *op, const char *extension)
DriverMap BKE_animdata_build_driver_target_map(Main &bmain)
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
@ SEQ_SINGLE_FRAME_CONTENT
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
const char * BKE_idtype_idcode_to_name_plural(short idcode)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
bool BLI_file_is_writable(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void ED_area_status_text(ScrArea *area, const char *str)
const EnumPropertyItem rna_enum_strip_scale_method_items[]
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
bool BLI_file_touch(const char *filepath) ATTR_NONNULL(1)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
@ SEQ_RIPPLE_CLEAR_RANGES
@ SEQ_RIPPLE_ALL_CHANNELS
bool applyNumInput(NumInput *n, float *vec)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
wmOperatorStatus WM_operator_props_popup_confirm_ex(bContext *C, wmOperator *op, const wmEvent *, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message)
@ USER_SEQ_ED_CLAMP_STRIPS_BY_DEFAULT
wmEventHandler_Op * WM_event_add_modal_handler(bContext *C, wmOperator *op)
wmOperatorStatus WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void void void BLI_path_split_file_part(const char *filepath, char *file, size_t file_maxncpy) ATTR_NONNULL(1
size_t BLI_timecode_string_from_time(char *str, size_t maxncpy, int brevity_level, float time_seconds, double fps, short timecode_style) ATTR_NONNULL()
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
void outputNumInput(NumInput *n, char *str, const UnitSettings &unit_settings)
bool BLI_rctf_isect(const struct rctf *src1, const struct rctf *src2, struct rctf *dest)
const EnumPropertyItem rna_enum_strip_color_items[]
@ ID_RECALC_ANIMATION_NO_FLUSH
@ ID_RECALC_SEQUENCER_STRIPS
void BKE_sound_load(Main *bmain, bSound *sound)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
void WM_modalkeymap_assign(wmKeyMap *km, const char *opname)
wmOperatorStatus WM_enum_search_invoke(bContext *C, wmOperator *op, const wmEvent *)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
void DEG_relations_tag_update(Main *bmain)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
bool void BLI_path_frame_strip(char *path, char *r_ext, size_t ext_maxncpy) ATTR_NONNULL(1
void RNA_pointer_set(PointerRNA *ptr, const char *name, PointerRNA ptr_value)
wmKeyMap * WM_modalkeymap_ensure(wmKeyConfig *keyconf, const char *idname, const EnumPropertyItem *items)
@ OPTYPE_DEPENDS_ON_CURSOR
@ AUTOKEY_FLAG_INSERTAVAILABLE
size_t BLI_string_split_name_number(const char *name, char delim, char *r_name_left, int *r_number) ATTR_NONNULL(1
std::string RNA_string_get(PointerRNA *ptr, const char *name)
bool ED_operator_sequencer_active(bContext *C)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
SpaceProperties * CTX_wm_space_properties(const bContext *C)
bScreen * WM_window_get_active_screen(const wmWindow *win)
MINLINE int min_ii(int a, int b)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
Object * CTX_data_active_object(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
void ED_workspace_status_text(bContext *C, const char *str)
bool BLI_file_ensure_parent_dir_exists(const char *filepath) ATTR_NONNULL(1)
float RNA_float_get(PointerRNA *ptr, const char *name)
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
void WM_event_add_fileselect(bContext *C, wmOperator *op)
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
ListBaseT< Scene > scenes
ListBaseT< TimeMarker > markers
struct ToolSettings * toolsettings
ListBaseT< SpaceLink > spacedata
eSpaceSeq_RegionType mainb
struct Scene * sequencer_scene
struct wmTimer * animtimer
ListBaseT< struct ScrArea > areabase
ListBaseT< Strip > * text_seq
VectorSet< Strip * > strips
void use_property_decorate_set(bool is_decorate)
void use_property_split_set(bool is_sep)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
void active_set(bool active)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
const char * translation_context
void(*) ui(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
std::string(*) get_name(wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports
struct wmOperatorType * type