Sequencer: Add Scene Strip Volume property #112597
@ -1769,10 +1769,43 @@ class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel):
|
||||
sub.use_property_decorate = True
|
||||
split = sub.split(factor=0.4, align=True)
|
||||
split.alignment = 'RIGHT'
|
||||
split.label(text="Scene Volume", text_ctxt=i18n_contexts.id_sound)
|
||||
split.label(text="Volume", text_ctxt=i18n_contexts.id_sound)
|
||||
split.prop(scene, "audio_volume", text="")
|
||||
sub.use_property_decorate = False
|
||||
|
||||
if strip.scene_input == 'CAMERA':
|
||||
layout = layout.column(heading="Show")
|
||||
layout.prop(strip, "use_annotations", text="Annotations")
|
||||
if scene:
|
||||
# Warning, this is not a good convention to follow.
|
||||
# Expose here because setting the alpha from the "Render" menu is very inconvenient.
|
||||
layout.prop(scene.render, "film_transparent")
|
||||
|
||||
|
||||
class SEQUENCER_PT_scene_sound(SequencerButtonsPanel, Panel):
|
||||
bl_label = "Sound"
|
||||
bl_category = "Strip"
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
if not cls.has_sequencer(context):
|
||||
return False
|
||||
|
||||
strip = context.active_sequence_strip
|
||||
if not strip:
|
||||
return False
|
||||
|
||||
return (strip.type == 'SCENE')
|
||||
|
||||
def draw(self, context):
|
||||
strip = context.active_sequence_strip
|
||||
scene = strip.scene
|
||||
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False
|
||||
layout.active = not strip.mute
|
||||
|
||||
col = layout.column()
|
||||
|
||||
col.use_property_decorate = True
|
||||
@ -1782,14 +1815,6 @@ class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel):
|
||||
split.prop(strip, "volume", text="")
|
||||
col.use_property_decorate = False
|
||||
|
||||
if strip.scene_input == 'CAMERA':
|
||||
layout = layout.column(heading="Show")
|
||||
layout.prop(strip, "use_annotations", text="Annotations")
|
||||
if scene:
|
||||
# Warning, this is not a good convention to follow.
|
||||
# Expose here because setting the alpha from the "Render" menu is very inconvenient.
|
||||
layout.prop(scene.render, "film_transparent")
|
||||
|
||||
|
||||
class SEQUENCER_PT_mask(SequencerButtonsPanel, Panel):
|
||||
bl_label = "Mask"
|
||||
@ -2745,6 +2770,7 @@ classes = (
|
||||
|
||||
SEQUENCER_PT_effect,
|
||||
SEQUENCER_PT_scene,
|
||||
SEQUENCER_PT_scene_sound,
|
||||
SEQUENCER_PT_mask,
|
||||
SEQUENCER_PT_effect_text_style,
|
||||
SEQUENCER_PT_effect_text_layout,
|
||||
|
Loading…
Reference in New Issue
Block a user