Happy to help!
As for changing the behavior of the audio mixing while viewing a Layout, you can change a property of the underlying stack node of the layout group to choose which audio source is used.
First off, you’ll need to acquire the name of the layout’s stack node. This can be done by checking the layout group’s nodes for a node of type RVStack:
def group_member_of_type(group_node, member_type):
for node in rvc.nodesInGroup(group_node):
if rvc.nodeType(node) == member_type:
return node
layout_stack = group_member_of_type(sequence_layout, "RVStack")
Then we set the stack’s output.chosenAudioInput property to one of the following options:
-
.all.
- All inputs’ audio is mixed together (default/current behavior).
-
.first.
- Only the first input’s audio is used.
-
layout_stack
input - Use the audio from a specific input.
# "layoutGroup.output.chosenAudioInput"
chosen_audio_property = layout_stack + ".output.chosenAudioInput"
# all layout inputs' audio is mixed together (default)
rvc.setStringProperty(chosen_audio_property, [".all."])
# first input's audio is used
rvc.setStringProperty(chosen_audio_property, [".first."])
# specific input's audio is used
rvc.setStringProperty(chosen_audio_property, [sequence_a])
And that should do it!
The same functionality is also available in the Session Manager:
