Blender Kitsu: Use new Kitsu Context UI in Multi Edit / Metadata #280

Merged
Nick Alberelli merged 11 commits from TinyNick/blender-studio-pipeline:fix/blender-kitsu-multi-edit into main 2024-04-08 17:51:04 +02:00
Showing only changes of commit bc598dece2 - Show all commits

View File

@ -20,7 +20,7 @@
import bpy
from .. import cache, prefs, ui
from .. import cache, prefs, ui, bkglobals
from ..sqe import checkstrip
from ..context import core as context_core
from ..logger import LoggerFactory
@ -366,6 +366,8 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
"""
addon_prefs = prefs.addon_prefs_get(context)
active_project = cache.project_active_get()
nr_of_shots = len(context.selected_sequences)
noun = get_selshots_noun(nr_of_shots)
@ -374,12 +376,15 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
box = layout.box()
box.label(text="Multi Edit", icon="PROPERTIES")
if active_project.production_type == bkglobals.KITSU_TV_PROJECT:
if not cache.episode_active_get():
box.label(text="Please Set Active Episode", icon="ERROR")
return
# Sequence
# TODO: use link sequence operator instead or sequence_enum ?
col = box.column()
sub_row = col.row(align=True)
# Sub_row.prop(context.window_manager, "sequence_name_display").
sub_row.prop(context.window_manager, "sequence_enum", text="Sequence")
sub_row.prop(context.window_manager, "selected_sequence_name", text="Sequence")
sub_row.operator(KITSU_OT_sqe_push_new_sequence.bl_idname, text="", icon="ADD")
# Counter.