Rank: Advanced Member
Groups: Registered
Joined: 11/27/2023(UTC) Posts: 96  Thanks: 4 times Was thanked: 5 time(s) in 5 post(s)
|
I have just discovered that the API function to toggle on and off Audio Buses on the output do not work in vMix 28.. The Master works ... is there a way to fix this
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 321  Thanks: 22 times Was thanked: 81 time(s) in 62 post(s)
|
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/27/2023(UTC) Posts: 96  Thanks: 4 times Was thanked: 5 time(s) in 5 post(s)
|
Originally Posted by: Peter1000  I found that page, and I tried using the commands and it does Not work in Version 28. It does not work...tried it over and over with the same results
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 321  Thanks: 22 times Was thanked: 81 time(s) in 62 post(s)
|
Take a deep breath... Can you describe what you did or what exactly you want to do? Do you have at least a 4K version? The other versions do not support scripting. It's best to copy your script here as a reply . put the code between <code> ..... </code>
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/23/2020(UTC) Posts: 218  Location: Wichita Thanks: 11 times Was thanked: 29 time(s) in 25 post(s)
|
Originally Posted by: Peter1000  Take a deep breath... Can you describe what you did or what exactly you want to do? Do you have at least a 4K version? The other versions do not support scripting. It's best to copy your script here as a reply . put the code between <code> ..... </code> Turning buses off and on here using scripts since vMix version 22. <input variable name>.Function("AudioBusOff","M") <---- "M" indicating Master bus, "A" through "G" for the rest of the buses.
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/27/2023(UTC) Posts: 96  Thanks: 4 times Was thanked: 5 time(s) in 5 post(s)
|
Originally Posted by: Roy Sinclair  Originally Posted by: Peter1000  Take a deep breath... Can you describe what you did or what exactly you want to do? Do you have at least a 4K version? The other versions do not support scripting. It's best to copy your script here as a reply . put the code between <code> ..... </code> Turning buses off and on here using scripts since vMix version 22. <input variable name>.Function("AudioBusOff","M") <---- "M" indicating Master bus, "A" through "G" for the rest of the buses. Function=MasterAudioOn Function=BusBAudioOn Function=BusAAudioOn This is the code I am using The Master works, but not the Buses
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 321  Thanks: 22 times Was thanked: 81 time(s) in 62 post(s)
|
this should work, try this in script , it switches all audio busses on Code:Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXAudioOn", Value:=value)
Next
it switches all audio busses off Code:Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXAudioOff", Value:=value)
Next
it toggles all audio busses Code:Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXAudio", Value:=value)
Next
For the Master you have to use or toggle
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/27/2023(UTC) Posts: 96  Thanks: 4 times Was thanked: 5 time(s) in 5 post(s)
|
Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#80FF00&SelectedName=Color1.Fill.Color&Duration=5000 Function=Cut&input=BLACK&Duration=1000 Sleep 2000 Function=MasterAudioOn Function=BusAAudioOn Function=BusBAudioOn Function=SetMasterVolume&Duration=4000&Value=85 Function=SetBusAVolume&Duration=4000&Value=85 Function=SetBusBVolume&Duration=4000&Value=85 Function=AudioOn&Input=NATIONAL ANTHEM Function=AudioOn&Input=PLAYER 1 Function=AudioOn&Input=PLAYER 2 Function=AudioOn&Input=PLAYER 3 Function=Restart&Input=BACKGROUND MUSIC Function=Play&Input=BACKGROUND MUSIC Function=SetVolumeFade&Input=BACKGROUND MUSIC&Value=85,5000 Function=AudioOn&Input=BACKGROUND MUSIC&Duration=500 Function=AudioOn&Input=HYMNS&Duration=500 Function=AudioOn&Input=Audio Microphone Function=SetVolumeFade&Input=USB AUDIO&Value=85,6000 Function=SetVolumeFade&Input=Audio Digital Audio Interface&Value=85,6000 Function=SetVolumeFade&Input=Audio Digital Audio Interface usb 3&Value=85,6000 Function=SetVolumeFade&Input=HYMNS&Value=85,6000 Function=SetVolumeFade&Input=PLAYER 1&Value=85,4000 Function=SetVolumeFade&Input=PLAYER 2&Value=85,4000 Function=SetVolumeFade&Input=PLAYER 3&Value=85,4000 Function=Play&Input=SLATE Function=Fade&Input=SLATE&Duration=5000&Mix=0 Function=SetVolumeFade&Input=CAM 1&Value=85,6000 Function=SetVolumeFade&Input=CAM 2&Value=85,6000 Function=SetVolumeFade&Input=CAM 3&Value=85,6000 Function=SetVolumeFade&Input=CAM 4&Value=85,6000 Function=SetVolumeFade&Input=Audio Microphone&Value=85,6000 Function=SetColor&Input=ColorPlaceholder.gtzip&Value=#FFFFFF&SelectedName=Color1.Fill.Color
...This is what my code looks like....it worked perfect with vmix 26, but does not work with vmix 28...the "ON" does not work with any of the buses, only the master. When I trigger the code for FTB, it works perfect, everything switches 'Off', but when I run this code the 'Buses' do not turn 'On', they remain 'Off'
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 321  Thanks: 22 times Was thanked: 81 time(s) in 62 post(s)
|
I copied your code into a new script in my vMix 29.36 in an empty project (new, no inputs). I manually turned off all audio buses and then ran your script. Master and buses A and B turned on perfectly. I would test that on another computer.
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/27/2023(UTC) Posts: 96  Thanks: 4 times Was thanked: 5 time(s) in 5 post(s)
|
Originally Posted by: Peter1000  I copied your code into a new script in my vMix 29.36 in an empty project (new, no inputs). I manually turned off all audio buses and then ran your script. Master and buses A and B turned on perfectly. I would test that on another computer. You proberly did not read my mesdsage correctly....I said vmix 28.0.0.42....It works in vmix 29, but I have other PCs that I work with that still have vmix 28
|
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 321  Thanks: 22 times Was thanked: 81 time(s) in 62 post(s)
|
same on a older I7 machine, vMix 28.36, i manually turned off all audio buses and then added your full command list to a new script. Master and buses A and B turned on perfectly. Fortunately, there are options...
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close