OK once again, from the begining
We broadcast a program (
?t=2461 ) My composition in Vmix is getting bigger and more complicated. Quite often I have to add or remove another pip's. That's why I thought to prepare scripts "add one pip" and "remove one pip". I'm not a programist but searching websites I wrote sript witch gives me activeinputs and activeinput's name.
dim activeinput as string = ""
dim xml as string = API.XML()
dim x as new system.xml.xmldocument
x.loadxml(xml)
activeinput = (x.SelectSingleNode("//active").InnerText)
Dim node As XmlNode = x.SelectSingleNode("/vmix/inputs/input[@number='"+ activeinput +"']")
Dim activename As String = node.FirstChild.InnerText
and depending on active inputs I'd like to use only one button to add pips
If activename = "SOLO" Then
API.Function("PreviewInput","Virtual - SOLO +1")
Sleep(20)
Input.Preview.Function("Merge",,700)
Sleep(720)
API.Function("PreviewInput","Virtual - SOLO +1 next")
Sleep(20)
Input.Preview.Function("Merge",,700)
End If
If activename = "Virtual - SOLO +1 next" Then
.....
...
..
etc
I currently use many inputs for deferent situation but the plan is to write the script which prepares me input depend on situation.
I can change source in multiview but i can't find way to change position or zoom my pips.
And one more thing, I have no idea how to change input on mix2. I try
API.Function("CutDirect","input1",,Mix:=2)
Function=CutDirect&Input=input1.jpg&Mix=2
but it doesn't work
thanks