vMix Forums
»
General
»
Feature Requests
»
Clear Solo (Done) added in 27.52 Thank you
Rank: Advanced Member
Groups: Registered
Joined: 3/12/2015(UTC) Posts: 482 Location: Kansas City, MO USA Thanks: 150 times Was thanked: 75 time(s) in 57 post(s)
|
This may have been requested, but I did not find it, (maybe there is a trick to do this)
Now that we have PFL, :-) audio mixing is more powerful.
We need a "Clear all Solo" function. On the GUI it would be nice to just click on the orange solo light. But we need an API Shortcut to do this.
Thanks!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 302 Thanks: 17 times Was thanked: 79 time(s) in 60 post(s)
|
I'm not sure I understand the question. But API already offers this function, including the normal shortcuts. You can assign the same key several times in the shortcuts and delete all solos with the command BusXSoloOff , Value A, BusXSoloOff , Value B etc. or via script: Code:Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXSoloOff", Value:=value)
Next
|
1 user thanked Peter1000 for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/12/2015(UTC) Posts: 482 Location: Kansas City, MO USA Thanks: 150 times Was thanked: 75 time(s) in 57 post(s)
|
Thanks Peter, but I want One command for all. We have the busses and 100+ inputs and finding the one input that is soloed can be a challenge. Audio consoles today have a clear all. Yes I could create a script, and it will list all inputs, but this is a messy solution.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/12/2015(UTC) Posts: 482 Location: Kansas City, MO USA Thanks: 150 times Was thanked: 75 time(s) in 57 post(s)
|
Hey Peter, Your code is much more efficient that what I was going to do. Each one separate... How would you format this for adding inputs 1-150 to go solo off?
Thanks! Steve
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/23/2017(UTC) Posts: 1,198 Location: Germany Thanks: 3 times Was thanked: 168 time(s) in 150 post(s)
|
The solo is exclusive, isn't it. So whatever solo you press it automatically disables the others. The script could be optimized by just soloing one input on and off. Then all solos are cleared.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/25/2019(UTC) Posts: 302 Thanks: 17 times Was thanked: 79 time(s) in 60 post(s)
|
sorry, I forgot the inputs. mavik's method is good, but you may want to avoid having something other than what you want on the solo output. you can simply determine the number of all inputs in the script and then switch soloOFF on all input numbers in a loop. it doesn't matter whether it's an audio or other input. The first part of the code is the one already shown above, followed by the new code to switch off the input solos There are 2 methods, both work. the more elegant one that first counts how many inputs you have Code:'switch off all solos on busses
Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXSoloOff", Value:=value)
Next
'switch off all solos on inputs
Dim xmlDoc As New XmlDocument()
Dim i as integer
xmlDoc.LoadXml(API.Xml)
Dim inputNodes As XmlNodeList = xmlDoc.SelectNodes("/vmix/inputs/input")
Dim inputCount As Integer = inputNodes.Count
for i = 1 to inputcount
API.Function("SoloOff", i)
Next
the brute force one, assuming you have no more than 500 inputs... Code:'switch off all solos on busses
Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXSoloOff", Value:=value)
Next
'switch off all solos on inputs
Dim i as integer
for i = 1 to 500
API.Function("SoloOff", i)
Next
|
1 user thanked Peter1000 for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/23/2022(UTC) Posts: 89 Location: Milton Keynes Thanks: 13 times Was thanked: 4 time(s) in 4 post(s)
|
Originally Posted by: mavik The solo is exclusive, isn't it. So whatever solo you press it automatically disables the others. The script could be optimized by just soloing one input on and off. Then all solos are cleared. No. If doing via API, or right-clicking on the S button, you can Solo multiple channels.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/12/2015(UTC) Posts: 482 Location: Kansas City, MO USA Thanks: 150 times Was thanked: 75 time(s) in 57 post(s)
|
Originally Posted by: Peter1000 sorry, I forgot the inputs. mavik's method is good, but you may want to avoid having something other than what you want on the solo output. you can simply determine the number of all inputs in the script and then switch soloOFF on all input numbers in a loop. it doesn't matter whether it's an audio or other input. The first part of the code is the one already shown above, followed by the new code to switch off the input solos There are 2 methods, both work. the more elegant one that first counts how many inputs you have Code:'switch off all solos on busses
Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXSoloOff", Value:=value)
Next
'switch off all solos on inputs
Dim xmlDoc As New XmlDocument()
Dim i as integer
xmlDoc.LoadXml(API.Xml)
Dim inputNodes As XmlNodeList = xmlDoc.SelectNodes("/vmix/inputs/input")
Dim inputCount As Integer = inputNodes.Count
for i = 1 to inputcount
API.Function("SoloOff", i)
Next
the brute force one, assuming you have no more than 500 inputs... Code:'switch off all solos on busses
Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
For Each value As String In busValues
API.Function("BusXSoloOff", Value:=value)
Next
'switch off all solos on inputs
Dim i as integer
for i = 1 to 500
API.Function("SoloOff", i)
Next
This is great, I appreciate you sharing your scripting expertise! Thank you, The "brute force" is what I was looking for, but I am learning from the more elegant version. :-) Steve
|
|
|
|
vMix Forums
»
General
»
Feature Requests
»
Clear Solo (Done) added in 27.52 Thank you
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