vMix Forums
»
General
»
General Discussion
»
Or create a variable capturing SetDynamicInput1 from vMix
Rank: Newbie
Groups: Registered
Joined: 11/18/2021(UTC) Posts: 8 Location: São Paulo Thanks: 2 times
|
Hi everyone, I'm from Brazil and I need some help. I need to create a variable that captures the value of an imput as in the attached image. Or create a variable capturing SetDynamicInput1 from vMix Dim card1 = SetDynamicInput1 or something like this Thank you all Captura de tela 2021-11-17 125616.jpg (67kb) downloaded 1 time(s). Captura de tela 2021-11-17 125616.jpg (67kb) downloaded 1 time(s).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
as the value you want to retrieve is in a title you can read that value in a script with for example Code:dim Card1 as string = Input.Find("TextHD.xaml").Text("Message")
You can then put it in a dynamicInput or Dynamic Value if so wanted and use it properly in the script Mind you the use of DynamicInput and Value is to replace its content in a function for the Input and value data! BTW why using XAML Titles instead of GT titles?
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/18/2021(UTC) Posts: 8 Location: São Paulo Thanks: 2 times
|
I used the Title only to get the value inserted into it.
I change the value changes the value of the variable.
I'm learning to program through trial and error.
I'm going to try to get this value from DynamicImput to use.
it would work
dim Card1 as string = SetDynamicValue1
?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/18/2021(UTC) Posts: 8 Location: São Paulo Thanks: 2 times
|
dim CARDx as string = Input.Find("SetCard").Text("Message") dim CALLx as string = Input.Find("SetCall").Text("Message") API.Function("SetMultiViewOverlay","CARDx","1,CALLx")
Não Funciona ...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Fabianogc dim CARDx as string = Input.Find("SetCard").Text("Message") dim CALLx as string = Input.Find("SetCall").Text("Message") API.Function("SetMultiViewOverlay","CARDx","1,CALLx")
Não Funciona ... Please check the helpfiles and the post in this forum called "scripting for dummies" to see examples of how the API.Functions are build before throwing spaghetti against the wall and see if it sticks . Build your functions with actual data/strings before using variable and/or combinations of variable and strings( refer to the shortcuts for elements needed in a function ) A variable in quotes just becomes a string !! btw dim Card1 as string = SetDynamicValue1 will never work because SetDynamicValue1 is not a variable but part of a function to store data to be retrieved for the value item part of a function wher eit will be called by using Dynamic1. As its value is stored in the API XML by the setdynamic function it is however retrievable with a script by pulling it from the API XML file Please check out the links i gave in your other post/topic FYI: Code:API.Function("SetMultiViewOverlay",CARDx,"1," & CALLx)
'or the new function
API.Function("SetLayer",CARDx,"1," & CALLx)
'But as you are learning it might be better to add more details
API.Function("SetLayer",Input:=CARDx,Value:="1," & CALLx)
|
1 user thanked doggy for this useful post.
|
|
|
vMix Forums
»
General
»
General Discussion
»
Or create a variable capturing SetDynamicInput1 from vMix
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