UI: Show Movie Clip frame properties UI template

This patch shows the start and end frames of the Movie Clip in its UI
template, which is now shown in the compositor node N-panel and camera
background image

Pull Request: https://projects.blender.org/blender/blender/pulls/145541
This commit is contained in:
irex124
2025-10-10 08:49:36 +02:00
committed by Omar Emara
parent 2f745308ed
commit 0e9fc94a30
3 changed files with 8 additions and 16 deletions

View File

@@ -1232,12 +1232,9 @@ class CLIP_PT_footage(CLIP_PT_clip_view_panel, Panel):
layout.use_property_decorate = False
sc = context.space_data
clip = sc.clip
col = layout.column()
col.template_movieclip(sc, "clip", compact=True)
col.prop(clip, "frame_start")
col.prop(clip, "frame_offset")
col.template_movieclip_information(sc, "clip", sc.clip_user)

View File

@@ -139,7 +139,11 @@ void uiTemplateMovieClip(uiLayout *layout,
row->prop(&clipptr, "filepath", UI_ITEM_NONE, "", ICON_NONE);
row->op("clip.reload", "", ICON_FILE_REFRESH);
uiLayout *col = &layout->column(false);
uiLayout *col = &layout->column(true);
col->separator();
col->prop(&clipptr, "frame_start", UI_ITEM_NONE, IFACE_("Start Frame"), ICON_NONE);
col->prop(&clipptr, "frame_offset", UI_ITEM_NONE, IFACE_("Frame Offset"), ICON_NONE);
col->separator();
uiTemplateColorspaceSettings(col, &clipptr, "colorspace_settings");
}
}

View File

@@ -61,18 +61,9 @@ static void node_composit_buts_movieclip(uiLayout *layout, bContext *C, PointerR
static void node_composit_buts_movieclip_ex(uiLayout *layout, bContext *C, PointerRNA *ptr)
{
bNode *node = (bNode *)ptr->data;
PointerRNA clipptr;
uiTemplateID(layout, C, ptr, "clip", nullptr, "CLIP_OT_open", nullptr);
if (!node->id) {
return;
}
clipptr = RNA_pointer_get(ptr, "clip");
uiTemplateColorspaceSettings(layout, &clipptr, "colorspace_settings");
layout->use_property_split_set(true);
layout->use_property_decorate_set(false);
uiTemplateMovieClip(layout, C, ptr, "clip", false);
}
using namespace blender::compositor;