Import Render Strip popup

pull/5/head
ChristopheSeux 2023-07-20 17:43:09 +02:00
parent 5d353b89b8
commit 403b428945
1 changed files with 14 additions and 12 deletions

View File

@ -31,16 +31,19 @@ class VSETB_OT_render(Operator):
scn = context.scene scn = context.scene
settings = get_scene_settings() settings = get_scene_settings()
return context.window_manager.invoke_props_dialog(self) return context.window_manager.invoke_props_dialog(self, width=350)
def draw(self, context): def draw(self, context):
scn = context.scene scn = context.scene
settings = get_scene_settings() settings = get_scene_settings()
layout = self.layout layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False
col = layout.column() box = layout.box()
col.label(text='Single File', icon='FILE_IMAGE') col = box.column()
col.label(text='Single File')
#col.use_property_split = True #col.use_property_split = True
#col.use_property_decorate = False #col.use_property_decorate = False
@ -51,29 +54,28 @@ class VSETB_OT_render(Operator):
row.prop(settings.active_project, "render_video") row.prop(settings.active_project, "render_video")
row = col.row() row = col.row()
row.enabled = settings.active_project.render_video row.enabled = settings.active_project.render_video
row.prop(settings.active_project, "render_video_template") row.prop(settings.active_project, "render_video_template", text='Video Path')
row = col.row() row = col.row()
row.prop(settings.active_project, "render_audio") row.prop(settings.active_project, "render_audio")
row = col.row() row = col.row()
row.enabled = settings.active_project.render_audio row.enabled = settings.active_project.render_audio
row.prop(settings.active_project, "render_audio_template") row.prop(settings.active_project, "render_audio_template", text='Audio Path')
layout.separator() #layout.separator()
col = layout.column() box = layout.box()
col.label(text='File per strip', icon='RENDERLAYERS') col = box.column()
col.label(text='File per strip')
col.separator()
col.prop(settings.active_project, "render_video_per_strip", text='Render Video') col.prop(settings.active_project, "render_video_per_strip", text='Render Video')
row = col.row() row = col.row()
row.enabled = settings.active_project.render_video_per_strip row.enabled = settings.active_project.render_video_per_strip
row.prop(settings.active_project, "render_video_strip_template", text='Video Template') row.prop(settings.active_project, "render_video_strip_template", text='Video Path')
col.prop(settings.active_project, "render_audio_per_strip", text='Render Audio') col.prop(settings.active_project, "render_audio_per_strip", text='Render Audio')
row = col.row() row = col.row()
row.enabled = settings.active_project.render_audio_per_strip row.enabled = settings.active_project.render_audio_per_strip
row.prop(settings.active_project, "render_audio_strip_template", text='Audio Template') row.prop(settings.active_project, "render_audio_strip_template", text='Audio Path')
#row.prop(settings.active_project, "render_sound_format", expand=True) #row.prop(settings.active_project, "render_sound_format", expand=True)