vMix Forums
»
General
»
3rd Party Software and Development
»
Need simple script to combine dynamic values & inputs
Rank: Advanced Member
Groups: Registered
Joined: 11/21/2017(UTC) Posts: 124 Location: Philadephia, PA Thanks: 31 times Was thanked: 13 time(s) in 8 post(s)
|
I know that this can be done in VB.net, but I don't know how to do it - so I'm hoping that it can be done in WebScripting - or that you can provide a simple example in VB.net script.
I'd like to combine DynamicValue1,DyamicInput2 into a single statement (including the comma) that substitutes the actual values for the two variables - rather than the string "DyamicValue1,DynamicInput" itself. Is there some function that will do that?
Thanks.
-David
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,243 Location: Belgium Thanks: 294 times Was thanked: 960 time(s) in 794 post(s)
|
Originally Posted by: David_in_Philly I know that this can be done in VB.net, but I don't know how to do it - so I'm hoping that it can be done in WebScripting - or that you can provide a simple example in VB.net script.
I'd like to combine DynamicValue1,DyamicInput2 into a single statement (including the comma) that substitutes the actual values for the two variables - rather than the string "DyamicValue1,DynamicInput" itself. Is there some function that will do that?
Thanks.
-David DynamicInputs and DynamicValues are technically to be used by name directly into functions as separate variables/elements If one wants their content to be used in a different way , like combine their content, one needs to read them from the API XML to manipulate them to be used in a function or otherwise
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/21/2017(UTC) Posts: 124 Location: Philadephia, PA Thanks: 31 times Was thanked: 13 time(s) in 8 post(s)
|
Thanks, Doggy. Will be responding to your email later today.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 7/6/2020(UTC) Posts: 15 Thanks: 4 times Was thanked: 3 time(s) in 3 post(s)
|
Here you go. Code:
dim Dynamic1Val as String = ""
dim Dynamic2Val as String = ""
dim VmixXML as new system.xml.xmldocument
VmixXML.loadxml(API.XML)
dim Dynamic1Node As XmlNode = VmixXML.selectSingleNode("/vmix/dynamic/value1")
dim Dynamic2Node As XmlNode = VmixXML.selectSingleNode("/vmix/dynamic/value2")
Dynamic1Val = Dynamic1Node.InnerText
Dynamic2Val = Dynamic2Node.InnerText
dim Result As String=Dynamic1Val & "," & Dynamic2Val
console.writeline(Result)
|
|
|
|
vMix Forums
»
General
»
3rd Party Software and Development
»
Need simple script to combine dynamic values & inputs
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