I dont know if suffice or not,because i dont have a sample image to check. Anyway this time i described to AI what to do and it come up with the following. In my example i assume that TitleText1.Text layer is "pair" with Image1.Source and so on until to 10. Code:
Dim a As String
Dim i As Integer
Do While True
For i = 1 To 10
' Διαβάζουμε το αντίστοιχο TitleText{i}.Text
a = Input.Find("[h]scoreboard[/h]").Text("TitleText" & i & ".Text")
' Αν το κείμενο είναι κενό ή μόνο whitespace, κλείνουμε το Image.
If String.IsNullOrWhiteSpace(a) Then
API.Function("SetImageVisibleOFF", Input:="[h]scoreboard[/h]", SelectedName:="Image" & i & ".Source")
Else
API.Function("SetImageVisibleON", Input:="[h]scoreboard[/h]", SelectedName:="Image" & i & ".Source")
End If
Next
Sleep(500)
Loop
i cannot say if it works or not but if yours not work,try it.
|
Hi. This script to my little knowledge it seems to me in-complete. Correct me if i am wrong but i dont see in your code a command like "api function"-->do this when the "if" situation is meet I see in vmix api that exist https://vmixapi.com/?function=SetImageVisibleOn and https://vmixapi.com/?function=SetImageVisibleOff in order to set the image visibility on or off. In your script i dont see something like this,that will tell vmix how to hide/unhide the image when the condition fits Edit. Based in the scripting of dummies thread and https://tvcrew.ch/wiki/d...hp?id=scripting_examples a working script that do what you need will be like this Code:
dim a as string
do while true
a= Input.Find("[h]scoreboard[/h]").Text("Title Text.Text")
if a = "" then
API.Function("SetImageVisibleOFF",Input:="[h]scoreboard[/h]",SelectedName:="Image2.Source")
else
API.Function("SetImageVisibleON",Input:="[h]scoreboard[/h]",SelectedName:="Image2.Source")
end if
sleep(500)
loop
replace with your input title names and try if works
|
Originally Posted by: doggy  Originally Posted by: TL68  Hi! Building a scoreboard which contains extra graphic elements that I would like to show/hide indipendent of eachother. Trying to use pages for this but cannot get it to work as needed.
If i assign element 1 to page 1 I need to hide element 2 and 3 on page 1 If i assign element 2 to page 2 I need to hide element 1 and 3 on page 2 If i assign element 3 to page 3 I need to hide element 1 and 2 on page 3
I want to have a shortcut for each individual element that triggers it to show, and so that I can chose any combination to display of the three elements. Above works if I want to just display each element alone.
But how to solve so that I for example can press shortcut for element 1 (page1) and then element 2 (page2) and both stays displayed at the same time? If set up as above element 1 will hide when I press element 2 and vice versa. I hope the question is understandable. Any solution for this?
each page will show what is defined on it , can not stack pages and look through them just like real world pages Maybe look into hiding/showing each element (use fade for that with very short time) Thanks for responding. Not sure I understand how to use the show/hide method though. Any manual or tutorial around for this?
|
Originally Posted by: TL68  Hi! Building a scoreboard which contains extra graphic elements that I would like to show/hide indipendent of eachother. Trying to use pages for this but cannot get it to work as needed.
If i assign element 1 to page 1 I need to hide element 2 and 3 on page 1 If i assign element 2 to page 2 I need to hide element 1 and 3 on page 2 If i assign element 3 to page 3 I need to hide element 1 and 2 on page 3
I want to have a shortcut for each individual element that triggers it to show, and so that I can chose any combination to display of the three elements. Above works if I want to just display each element alone.
But how to solve so that I for example can press shortcut for element 1 (page1) and then element 2 (page2) and both stays displayed at the same time? If set up as above element 1 will hide when I press element 2 and vice versa. I hope the question is understandable. Any solution for this?
each page will show what is defined on it , can not stack pages and look through them just like real world pages Maybe look into hiding/showing each element (use fade for that with very short time)
|
Hi! Building a scoreboard which contains extra graphic elements that I would like to show/hide indipendent of eachother. Trying to use pages for this but cannot get it to work as needed.
If i assign element 1 to page 1 I need to hide element 2 and 3 on page 1 If i assign element 2 to page 2 I need to hide element 1 and 3 on page 2 If i assign element 3 to page 3 I need to hide element 1 and 2 on page 3
I want to have a shortcut for each individual element that triggers it to show, and so that I can chose any combination to display of the three elements. Above works if I want to just display each element alone.
But how to solve so that I for example can press shortcut for element 1 (page1) and then element 2 (page2) and both stays displayed at the same time? If set up as above element 1 will hide when I press element 2 and vice versa. I hope the question is understandable. Any solution for this?
|
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close