vMix Forums
»
General
»
General Discussion
»
Scripting - Set Audio buses on an input
Rank: Newbie
Groups: Registered
Joined: 11/6/2020(UTC) Posts: 5 Thanks: 1 times Was thanked: 1 time(s) in 1 post(s)
|
My apologies if this has been asked before, my google-ing skills have failed me. I'm trying to work out how to build a script to set the Audio Busses for a given input. Can anyone point me in the right direction.
Basically, I want two scripts. Script 1 sets Input 1 to Buses A and B only Script 2 sets Input 1 to Buses C and D only.
Thanks John
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Johnkendall My apologies if this has been asked before, my google-ing skills have failed me. I'm trying to work out how to build a script to set the Audio Busses for a given input. Can anyone point me in the right direction.
Basically, I want two scripts. Script 1 sets Input 1 to Buses A and B only Script 2 sets Input 1 to Buses C and D only.
Thanks John Functions used in a script are the same as if you would use them in a shortcut Is a good idea to look there for more details first regarding a function The helpfiles also have the complete list of available functions Can do it with just shortcuts instead of script Check the functions Audiobus with value the Bus
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 post(s)
|
You could do something like: Code:dim BusL1() As String = {"a","b"}
dim BusL2() As String = {"c","d"}
for i as Integer = 0 to 1
api.function("AudioBusOn", input:=1, value:=BusL1(i))
api.function("AudioBusOff", input:=1, value:=BusL2(i))
next
and vice versa
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Scripting - Set Audio buses on an input
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