Rank: Newbie
Groups: Registered
Joined: 2/10/2024(UTC) Posts: 8  
|
And as promised, here is how I handle the name titles: • There is one title input with two lines of text for name and Instagram handle • Text fields are assigned to a data source which uses a simple .csv file • Depending on which camera is on Program, the script will: o Pause the AutoTake (by turning off audio sent to Bus A, B and C) o Change the Data Source to the correct host name/handle o Add the Title for 4 seconds o Take out the Title and wait another second o Resume AutoTake Using a Stream Deck anyone (most likely the main host or a producer) can hit the same button while anyone is talking and the correct name title will appear for that host. Here is the code: Code:dim xml as string = API.XML()
dim InputActiveName as string = ""
dim activeinput as string = ""
dim x as new system.xml.xmldocument
x.loadxml(xml)
activeinput = (x.SelectSingleNode("//active").InnerText)
InputActiveName = (x.SelectSingleNode("//input[@number='"& activeinput &"']/@title").Value)
if InputActiveName = "CAM 1"
API.Function("AudioBusOff",Value:="A",Input:="CAM 1")
API.Function("AudioBusOff",Value:="B",Input:="CAM 2")
API.Function("AudioBusOff",Value:="C",Input:="CAM 3")
Sleep (100)
API.Function("DataSourceSelectRow",Value:="CSV,Sheet1,2")
API.Function("OverlayInput1In",Input:="4")
Sleep (4000)
API.Function("OverlayInput1Out")
Sleep (1000)
API.Function("AudioBusOn",Value:="A",Input:="CAM 1")
API.Function("AudioBusOn",Value:="B",Input:="CAM 2")
API.Function("AudioBusOn",Value:="C",Input:="CAM 3")
elseif InputActiveName = "CAM 2"
API.Function("AudioBusOff",Value:="A",Input:="CAM 1")
API.Function("AudioBusOff",Value:="B",Input:="CAM 2")
API.Function("AudioBusOff",Value:="C",Input:="CAM 3")
Sleep (100)
API.Function("DataSourceSelectRow",Value:="CSV,Sheet1,1")
API.Function("OverlayInput1In",Input:="4")
Sleep (4000)
API.Function("OverlayInput1Out")
Sleep (1000)
API.Function("AudioBusOn",Value:="A",Input:="CAM 1")
API.Function("AudioBusOn",Value:="B",Input:="CAM 2")
API.Function("AudioBusOn",Value:="C",Input:="CAM 3")
elseif InputActiveName = "CAM 3"
API.Function("AudioBusOff",Value:="A",Input:="CAM 1")
API.Function("AudioBusOff",Value:="B",Input:="CAM 2")
API.Function("AudioBusOff",Value:="C",Input:="CAM 3")
Sleep (100)
API.Function("DataSourceSelectRow",Value:="CSV,Sheet1,0")
API.Function("OverlayInput1In",Input:="4")
Sleep (4000)
API.Function("OverlayInput1Out")
Sleep (1000)
API.Function("AudioBusOn",Value:="A",Input:="CAM 1")
API.Function("AudioBusOn",Value:="B",Input:="CAM 2")
API.Function("AudioBusOn",Value:="C",Input:="CAM 3")
end if
|