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
hardayildiz  
#1 Posted : Wednesday, August 18, 2021 5:06:26 PM(UTC)
hardayildiz

Rank: Member

Groups: Registered
Joined: 1/20/2021(UTC)
Posts: 11
Location: Istanbul

Thanks: 8 times
Hello,

I couldn't find any specific way to achieve this (maybe it's here in different topics and i couldn't find the correct search keywords)

The question is same as the topic.

I'm looking for a single action (trigger/shortcut) to toggle Routing All Inputs to Bus X (can be any of the 8 audio Bus).

I can achieve this by adding a trigger for every single input. But i feel there is an easier way which i couldn't find.

PS: I can't turn off Audio's of the inputs or of a Bus.

Thank you in advance,
doggy  
#2 Posted : Wednesday, August 18, 2021 5:46:05 PM(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)
by calling a script that loops through all the inputs to Set to bus X ?
thanks 1 user thanked doggy for this useful post.
hardayildiz on 8/18/2021(UTC)
hardayildiz  
#3 Posted : Wednesday, August 18, 2021 6:01:18 PM(UTC)
hardayildiz

Rank: Member

Groups: Registered
Joined: 1/20/2021(UTC)
Posts: 11
Location: Istanbul

Thanks: 8 times
Thank you very much for quick reply doggy. I'm not familiar with scripting at the moment, it seems that i must work on it.

While writing a script, will i need to specify every single input separately or is there a command to trigger all inputs?
doggy  
#4 Posted : Wednesday, August 18, 2021 6:16:16 PM(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: hardayildiz Go to Quoted Post
Thank you very much for quick reply doggy. I'm not familiar with scripting at the moment, it seems that i must work on it.

While writing a script, will i need to specify every single input separately or is there a command to trigger all inputs?


you could have a instruction for every input separately but that is not practical unless you always have a fixed amount of inputs , then one might as well have such a bunch of shortcut all with the same trigger key.

a script ( vb.net programming) can do it regardless of the amount of inputs , do only the ones that are able to ( titles for example have no effect to it ) etc. One creates a command

Basically one creates a loop

for every input ( 1 to input count)
instruct the audio bus
next

one can get the amount of inputs retrieving (counting) it from the vMix Api

Check out "scripting for dummies" post regarding scripting basics



thanks 1 user thanked doggy for this useful post.
hardayildiz on 8/18/2021(UTC)
doggy  
#5 Posted : Wednesday, August 18, 2021 6:46:08 PM(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)
togglebus.JPG (42kb) downloaded 3 time(s).

For even more fun/flexibiity , create various shorcuts to SetDynamicValueX to any specific bus you want and call the script with the function in the script having Value:= DynamicX (x= 1-4)

thanks 1 user thanked doggy for this useful post.
hardayildiz on 8/18/2021(UTC)
matkeane  
#6 Posted : Wednesday, August 18, 2021 8:37:43 PM(UTC)
matkeane

Rank: Advanced Member

Groups: Registered
Joined: 10/6/2020(UTC)
Posts: 98
France

Was thanked: 21 time(s) in 21 post(s)
Apologies for being too lazy right now to turn on the vMix machine and try for myself, but... What would be the best way to get the category for each Input in the script ?

I was thinking that I could modify the script to assign all Inputs in the 'Red' category to Bus A, all the Inputs in the 'Blue' category to Bus C, etc. That way, I could categorise my inputs as I add them and then easily route all audio files to one bus, all vMix Calls to another, and so on.
doggy  
#7 Posted : Thursday, August 19, 2021 4:04:50 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: matkeane Go to Quoted Post
Apologies for being too lazy right now to turn on the vMix machine and try for myself, but... What would be the best way to get the category for each Input in the script ?

I was thinking that I could modify the script to assign all Inputs in the 'Red' category to Bus A, all the Inputs in the 'Blue' category to Bus C, etc. That way, I could categorise my inputs as I add them and then easily route all audio files to one bus, all vMix Calls to another, and so on.


if you are able to find which inputs belong to which color tab from the API XML you could .
Too lazy and no free (uncompensated) time left to check ;-).
matkeane  
#8 Posted : Thursday, August 19, 2021 7:26:57 PM(UTC)
matkeane

Rank: Advanced Member

Groups: Registered
Joined: 10/6/2020(UTC)
Posts: 98
France

Was thanked: 21 time(s) in 21 post(s)
Originally Posted by: doggy Go to Quoted Post
if you are able to find which inputs belong to which color tab from the API XML you could .
Too lazy and no free (uncompensated) time left to check ;-).


Haha, fair enough! ;-)

After a quick test of the API, it seems like the Input category is not included in the XML response. I can set the category for an input with the SelectCategory shortcut but not read the current value, unless I'm missing something. On the other hand, the API does return a 'type' property for each input - e.g. "Image", "VideoCall", "AudioFile", "Video", etc - so I could use that to send all calls to one bus and all video & audio files to another, which will make the sound guy happy.

Right now though, the weather is improving so it's time to get out on the bike - API scripting tests will have to wait until later !
doggy  
#9 Posted : Thursday, August 19, 2021 8:39:09 PM(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: matkeane Go to Quoted Post

After a quick test of the API, it seems like the Input category is not included in the XML response.


Bingo

Quote:
I can set the category for an input with the SelectCategory shortcut but not read the current value, unless I'm missing something. On the other hand, the API does return a 'type' property for each input - e.g. "Image", "VideoCall", "AudioFile", "Video", etc - so I could use that to send all calls to one bus and all video & audio files to another, which will make the sound guy happy.


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