Scripting : Assign Event Mixer Master to a MixerGroup

Hi, I’m trying to assign Events to Groups in a script, but can’t find how to do it.
Currently I have this line :
event.masterTrack.mixerGroup.output = myGroup; (myGroup is a MixerGroup and I have the reference, it is named “sfx”)

But this does something weird : it creates a new group named “Master” in the “sfx” group, with a child group named “sfx”, and does not place the event in the group.

In order to route an event or group/send bus you actually need to set the mixerInput's output to the group bus. For example:

event.mixerInput.output = myGroup;
1 Like