logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Johnkendall  
#1 Posted : Wednesday, November 17, 2021 12:51:13 AM(UTC)
Johnkendall

Rank: Newbie

Groups: Registered
Joined: 11/6/2020(UTC)
Posts: 5
United Kingdom

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
doggy  
#2 Posted : Wednesday, November 17, 2021 5:34:33 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: Johnkendall Go to Quoted Post
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
Chris Daum  
#3 Posted : Sunday, November 21, 2021 7:35:58 AM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 74
Man
Germany

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
Users browsing this topic
Guest (2)
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.