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
Tone13  
#1 Posted : Tuesday, April 28, 2020 11:41:21 PM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
Hi all, I'm trying to create a push to talk shortcut on my Streamdeck. I select the action and Audio Bus On for down press and off for release. When I then go to test, the push to talk works for the Main audio out but not any of the busses.
What am I missing here?

Cheers.
TobinT  
#2 Posted : Wednesday, April 29, 2020 12:03:38 AM(UTC)
TobinT

Rank: Advanced Member

Groups: Registered
Joined: 12/4/2018(UTC)
Posts: 35
Belgium
Location: Brussels

Thanks: 3 times
Was thanked: 9 time(s) in 9 post(s)
Hi Tone13,

If I've understood correctly the issue is you haven't added actions to for the other busses. You need to have an action per AudioBus you wish to send the input to.

So you need Function=AudioBus&Value=X&Input=Y

Where X is the Bus (M,A,B,C,D,E,F,G) and Y is the input number (or input name).

Hope that helps
thanks 1 user thanked TobinT for this useful post.
Tone13 on 4/29/2020(UTC)
Peter1000  
#3 Posted : Wednesday, April 29, 2020 1:13:34 AM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 212
Switzerland

Thanks: 6 times
Was thanked: 46 time(s) in 36 post(s)
This Script switches on all Inputs Audio Bus D off, you can replace D with M/A-G

Quote:
Dim doc As New XmlDocument()
doc.LoadXml(API.Xml)
Dim root As XmlNode = doc.DocumentElement
Dim i as Integer
Dim xel As XmlElement
Dim node As XmlNode = root.SelectSingleNode("/vmix/active") 'look for node
Dim inputNumber as Integer = node.InnerXml 'shows active input

‘how many inputs are active?
Dim vmixinputs as Integer 'inputs in total
For Each xel In Doc.SelectNodes("vmix")
vmixinputs = (xel.SelectNodes("inputs/input").Count)
Next xel

'switches all audioBusses "D" off
for i = 1 to vmixinputs
API.Function("AudioBusOff", i, "D")
Next


This Script switches all Audiobusses ON on Input4 (except M)

Quote:
Function=AudioBusON&Input=4&Value=A
Function=AudioBusON&Input=4&Value=B
Function=AudioBusON&Input=4&Value=C
Function=AudioBusON&Input=4&Value=D
Function=AudioBusON&Input=4&Value=E
Function=AudioBusON&Input=4&Value=F
Function=AudioBusON&Input=4&Value=G


the same, to switch off a bus on a input
Quote:
Function=AudioBusOFF&Input=4&Value=Master


there is a super little program from User Raugert in 3rd Party Software, which lets you easy find out more things about scripting
vMix Script Builder App






thanks 1 user thanked Peter1000 for this useful post.
Tone13 on 4/29/2020(UTC)
Tone13  
#4 Posted : Wednesday, April 29, 2020 6:50:54 AM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
Thanks guys,
I did try adding the scripts for each bus but I think I had the script wrong.
These are a great help.

Cheers.

PS, I've been using Raugert's Panel Builder which is great, I'll check out his script app as well as scripting is new to me.

Tone13  
#5 Posted : Wednesday, April 29, 2020 12:37:54 PM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
OK, I'm at a bit of a loss.

On the push of a button on the Streamdeck, I want to send my microphone 'Audio Microphone on input 28' to Audio busses A-G.
I just want that mic to be agged to the Audio Busses. I don't want to turn those busses on or off, just add my microphone source. What function should I choose? Audio bus on?
Peter1000  
#6 Posted : Wednesday, April 29, 2020 3:44:41 PM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 212
Switzerland

Thanks: 6 times
Was thanked: 46 time(s) in 36 post(s)
Sample for Input 28

Mikrophone ON
Quote:
' switches Audio ON on Input 28
API.Function("AudioON", 28)

' switches Input 28 to Bus A-G
API.Function("AudioBusON",28 ,Value:="A")
API.Function("AudioBusON",28 ,Value:="B")
API.Function("AudioBusON",28 ,Value:="C")
API.Function("AudioBusON",28 ,Value:="D")
API.Function("AudioBusON",28 ,Value:="E")
API.Function("AudioBusON",28 ,Value:="F")
API.Function("AudioBusON",28 ,Value:="G")


Mikrophone OFF
Quote:
' switches Audio OFF on Input 28
API.Function("AudioOFF", 28)

' switches Input 28 away from Bus A-G
API.Function("AudioBusOFF",28 ,Value:="A")
API.Function("AudioBusOFF",28 ,Value:="B")
API.Function("AudioBusOFF",28 ,Value:="C")
API.Function("AudioBusOFF",28 ,Value:="D")
API.Function("AudioBusOFF",28 ,Value:="E")
API.Function("AudioBusOFF",28 ,Value:="F")
API.Function("AudioBusOFF",28 ,Value:="G")
thanks 1 user thanked Peter1000 for this useful post.
Tone13 on 4/30/2020(UTC)
TobinT  
#7 Posted : Wednesday, April 29, 2020 6:07:07 PM(UTC)
TobinT

Rank: Advanced Member

Groups: Registered
Joined: 12/4/2018(UTC)
Posts: 35
Belgium
Location: Brussels

Thanks: 3 times
Was thanked: 9 time(s) in 9 post(s)
Hi Tone13,

What software are you using to manage the stream deck? If you're using Bitfocus Companion then simply add multiple actions to the button press. If you aren't using Companion I highly recommend it.
The latest beta companion build (v2.0.0.0) has support for Vmix including the functionality you want to implement (again add multiple actions, one per bus).

Hope that helps!
thanks 1 user thanked TobinT for this useful post.
Tone13 on 4/30/2020(UTC)
Tone13  
#8 Posted : Thursday, April 30, 2020 8:46:33 AM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: TobinT Go to Quoted Post
Hi Tone13,

What software are you using to manage the stream deck? If you're using Bitfocus Companion then simply add multiple actions to the button press. If you aren't using Companion I highly recommend it.
The latest beta companion build (v2.0.0.0) has support for Vmix including the functionality you want to implement (again add multiple actions, one per bus).

Hope that helps!


Thanks all for the replies.

I'm not using anything to manage the Streamdeck. Just the Streamdeck software and vMix Shortcuts.

I come from a broadcast TV background and had to throw myself into vMix for remotely Directing and switching a show so vMix, Streamdecks etc is all pretty new to me......and I'm amazed at what can be achieved with very little knowledge.....

PS..Thanks Peter, that's extremely useful.
Tone13  
#9 Posted : Thursday, April 30, 2020 9:21:29 PM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: Peter1000 Go to Quoted Post
Sample for Input 28

Mikrophone ON
Quote:
' switches Audio ON on Input 28
API.Function("AudioON", 28)

' switches Input 28 to Bus A-G
API.Function("AudioBusON",28 ,Value:="A")
API.Function("AudioBusON",28 ,Value:="B")
API.Function("AudioBusON",28 ,Value:="C")
API.Function("AudioBusON",28 ,Value:="D")
API.Function("AudioBusON",28 ,Value:="E")
API.Function("AudioBusON",28 ,Value:="F")
API.Function("AudioBusON",28 ,Value:="G")


Mikrophone OFF
Quote:
' switches Audio OFF on Input 28
API.Function("AudioOFF", 28)

' switches Input 28 away from Bus A-G
API.Function("AudioBusOFF",28 ,Value:="A")
API.Function("AudioBusOFF",28 ,Value:="B")
API.Function("AudioBusOFF",28 ,Value:="C")
API.Function("AudioBusOFF",28 ,Value:="D")
API.Function("AudioBusOFF",28 ,Value:="E")
API.Function("AudioBusOFF",28 ,Value:="F")
API.Function("AudioBusOFF",28 ,Value:="G")


I've tried these but it doesn't work, it still switches the microphone to the M bus rather than the A-G busses. Obviously I'm doing something wrong in my script. To be honest, I'm finding it hard to work out which part of your message is the script and which isn't.

Just what's in the brackets? Or do I type everything from API onwards for each line?
Peter1000  
#10 Posted : Thursday, April 30, 2020 10:41:57 PM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 212
Switzerland

Thanks: 6 times
Was thanked: 46 time(s) in 36 post(s)
Maybe you first read the manual about scripting...

-make a new script, you can give it a name like MIC_ON
-copy all text in the Quote field, as in example, into the script (lines, beginning with a ' are comments for you....)
-save the script
MIC_ON.PNG (24kb) downloaded 0 time(s).
The same again for MIC_OFF

Then link the two scripts with your Streamdeck Controller
-MIC_ON for Streamdeck Button Down/ MIC_OFF for Streamdeck Button UP
Streamdeck.PNG (14kb) downloaded 0 time(s).
Tone13  
#11 Posted : Friday, May 1, 2020 6:15:53 AM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
Thanks for trying to help, much appreciated.

OK, so firstly from what I can see in the manual about scripting:

vMix Manual on scripting.png (40kb) downloaded 0 time(s).

To someone not into scripting, this is not a great help.

I was originally trying to do what I wanted to do from this window in what I thought would be a logical way:

vMix Add shortcut.png (22kb) downloaded 0 time(s).

I even tried one line of your script in the 'Value Bus' section but still nothing.

The area in the above image entitled 'Value Bus' would suggest to me that that is where I add what busses I would like to apply the shortcut to.

So, I then tried adding your script to the scripting section and linking it like you said and still nothing, and even if it did work, it's a long winded way.

I'll admit that I have no idea about scripting but vMix's implementation on trying to achieve something quite simple is a dogs breakfast!

What a mess!

Why can't I just achieve what I need to achieve from the Shorcuts area?
Tone13  
#12 Posted : Friday, May 1, 2020 6:31:00 AM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
The below works to send the Microphone to Bus A

vMix shortcut bus On works.png (20kb) downloaded 0 time(s).

If I try to add more than one bus to the 'Value:Bus' field where I have the value A, then bus A no longer works and the shortcut only effects the M Bus.

Considering at the top, where it says 'Function Audio Bus on' below it lists the busses separated by a comma, wouldn't it be safe to assume for a novice like me that I should be able to add multiple busses separated by a comma like they have in the example there?

What I have done to get this to work is create 6 copies of the shortcut (One for each bus) and another six for the off function....so 12 in all!
TobinT  
#13 Posted : Friday, May 1, 2020 6:41:41 AM(UTC)
TobinT

Rank: Advanced Member

Groups: Registered
Joined: 12/4/2018(UTC)
Posts: 35
Belgium
Location: Brussels

Thanks: 3 times
Was thanked: 9 time(s) in 9 post(s)
Hi Tone13,

That because when creating shortcuts in vmix only the last value counts per action. You need to add multiple actions per key press, not multiple values per action.
I hope that makes sense.

I really think you should take a look at bitfocus companion especially the beta build (2.0.0.0) as it will let you do exactly what you want without any scripting. I practically never use the streamdeck's default software as companion is a million times more functional in broadcast world.
I can not recommend it enough!
thanks 1 user thanked TobinT for this useful post.
Tone13 on 5/1/2020(UTC)
Tone13  
#14 Posted : Friday, May 1, 2020 7:11:19 AM(UTC)
Tone13

Rank: Advanced Member

Groups: Registered
Joined: 3/29/2020(UTC)
Posts: 59
Australia
Location: Melbourne

Thanks: 17 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: TobinT Go to Quoted Post
Hi Tone13,

That because when creating shortcuts in vmix only the last value counts per action. You need to add multiple actions per key press, not multiple values per action.
I hope that makes sense.

I really think you should take a look at bitfocus companion especially the beta build (2.0.0.0) as it will let you do exactly what you want without any scripting. I practically never use the streamdeck's default software as companion is a million times more functional in broadcast world.
I can not recommend it enough!


Will check it out now!
ask  
#15 Posted : Friday, May 1, 2020 8:12:31 AM(UTC)
ask

Rank: Advanced Member

Groups: Registered
Joined: 10/13/2012(UTC)
Posts: 1,123
Australia
Location: Melbourne

Thanks: 194 times
Was thanked: 191 time(s) in 175 post(s)
The other thing you can do is to setup multiple shortcuts driven by the same button. Simply take your working shortcut, clone, and then edit. Change the value from A to B etc.
raugert  
#16 Posted : Friday, May 1, 2020 12:33:11 PM(UTC)
raugert

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 434
Canada
Location: Manitoba

Thanks: 76 times
Was thanked: 232 time(s) in 137 post(s)
@Tone13

If you are using Panel Builder, you can create buttons with "ScriptStartDynamic" command and import the following scripts in the script window. One is for All busses (A-G) "On" and the other is for All busses (A-G) "Off". You just need to change your "Input" name in the scripts

AudioOff.txt (1kb) downloaded 5 time(s).

AudioOn.txt (1kb) downloaded 3 time(s).


You can also send a command to a BitFocus button (Bank,Button) from Panel Builder if you are so inclined.

cheers,
Richard
Users browsing this topic
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.