logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Fabianogc  
#1 Posted : Thursday, November 18, 2021 2:04:44 AM(UTC)
Fabianogc

Rank: Newbie

Groups: Registered
Joined: 11/18/2021(UTC)
Posts: 8
Brazil
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).
doggy  
#2 Posted : Thursday, November 18, 2021 3:48:43 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
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?
thanks 1 user thanked doggy for this useful post.
Fabianogc on 11/18/2021(UTC)
Fabianogc  
#3 Posted : Thursday, November 18, 2021 6:08:50 AM(UTC)
Fabianogc

Rank: Newbie

Groups: Registered
Joined: 11/18/2021(UTC)
Posts: 8
Brazil
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

?
Fabianogc  
#4 Posted : Thursday, November 18, 2021 6:52:06 AM(UTC)
Fabianogc

Rank: Newbie

Groups: Registered
Joined: 11/18/2021(UTC)
Posts: 8
Brazil
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 ...
doggy  
#5 Posted : Thursday, November 18, 2021 10:03:31 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: Fabianogc Go to Quoted Post
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)




thanks 1 user thanked doggy for this useful post.
Fabianogc on 11/20/2021(UTC)
Users browsing this topic
Guest
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.