User Tools

Site Tools


scripting_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
scripting_examples [2023/11/09 10:22] – [Switches off AudioBus D for all inputs] peteraelligscripting_examples [2023/11/15 16:59] (current) – [turns off all SOLOs] peteraellig
Line 240: Line 240:
  
 ===== turns off all SOLOs ===== ===== turns off all SOLOs =====
-<code>+<code>'switch off all solos on busses
 Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"} Dim busValues As String() = {"A", "B", "C", "D", "E", "F", "G"}
- 
 For Each value As String In busValues For Each value As String In busValues
     API.Function("BusXSoloOff", Value:=value)     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 Next
 </code>\\ </code>\\
scripting_examples.txt · Last modified: 2023/11/15 16:59 by peteraellig

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki