Blender Kitsu: Use new Kitsu Context UI in Multi Edit / Metadata #280
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
from .. import cache, prefs, ui
|
from .. import cache, prefs, ui, bkglobals
|
||||||
from ..sqe import checkstrip
|
from ..sqe import checkstrip
|
||||||
from ..context import core as context_core
|
from ..context import core as context_core
|
||||||
from ..logger import LoggerFactory
|
from ..logger import LoggerFactory
|
||||||
@ -366,6 +366,8 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
addon_prefs = prefs.addon_prefs_get(context)
|
addon_prefs = prefs.addon_prefs_get(context)
|
||||||
|
active_project = cache.project_active_get()
|
||||||
|
|
||||||
nr_of_shots = len(context.selected_sequences)
|
nr_of_shots = len(context.selected_sequences)
|
||||||
noun = get_selshots_noun(nr_of_shots)
|
noun = get_selshots_noun(nr_of_shots)
|
||||||
|
|
||||||
@ -374,12 +376,15 @@ class KITSU_PT_sqe_shot_tools(bpy.types.Panel):
|
|||||||
box = layout.box()
|
box = layout.box()
|
||||||
box.label(text="Multi Edit", icon="PROPERTIES")
|
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
|
# Sequence
|
||||||
# TODO: use link sequence operator instead or sequence_enum ?
|
|
||||||
col = box.column()
|
col = box.column()
|
||||||
sub_row = col.row(align=True)
|
sub_row = col.row(align=True)
|
||||||
# Sub_row.prop(context.window_manager, "sequence_name_display").
|
sub_row.prop(context.window_manager, "selected_sequence_name", text="Sequence")
|
||||||
sub_row.prop(context.window_manager, "sequence_enum", text="Sequence")
|
|
||||||
sub_row.operator(KITSU_OT_sqe_push_new_sequence.bl_idname, text="", icon="ADD")
|
sub_row.operator(KITSU_OT_sqe_push_new_sequence.bl_idname, text="", icon="ADD")
|
||||||
|
|
||||||
# Counter.
|
# Counter.
|
||||||
|
Loading…
Reference in New Issue
Block a user