 Image.png (9kb) downloaded 12 time(s). Image.png (9kb) downloaded 12 time(s). Text.png (11kb) downloaded 12 time(s).Originally Posted by: Salleman  Originally Posted by: dmwkr  Originally Posted by: Salleman  It could absolutely be a solution normally, but this is a scoreboard with many different fields that are toggled on and off and it would be a nightmare to handle all the variations via pages in GT Since Text and Image can be toggle on and off, I think color should also be able to do the same since they are available as editable in Title Just to keep it less complex, in addition to doggy's suggestion you can also put the "Empty Goal" part in a 2nd title with pages and layer it on the scoreboard input. Of course, but it would not be complex if Color/rectangle also was toggleble :-) I meen, you are able to toggle Text and Images, but not Color. Why?  Color.png (7kb) downloaded 13 time(s). Image.png (9kb) downloaded 12 time(s). Text.png (11kb) downloaded 12 time(s).
|
Hi, We have just released an update for Scoreboard OCR to better integrate with vMix. You no longer need to try to guess vMix field names in Scoreboard OCR and no need to add input number. This was long overdue. Here is a short video: https://player.vimeo.com/video/1121503115And here are full instructions: https:// scoreboard-ocr.com/vmix Download here: https:// scoreboard-ocr.com/start#download_ scoreboard_ocr Let us know, if you experience any issues, Arturs
|
Originally Posted by: MSFTGuruGuy  Hey All! I was curious if anyone has a simple scripting solution to continuously check whether or not a data source is positive and if it's not, take the abs of it and replace the data feed with the abs of that number. I've tried to use 'newnumber = math.abs(oldnumber)' and then using 'API.Function("SetText",Input:=scoreboard , Value:=newballon, SelectedName:="Ballon.Text")' but running that in a continuous script seems to be producing no solution. The Context is I have a scoreboard sending Vmix a JSON data stream in American Football. Depending on field position the ball location, the scoreboard will send a negative number for field position. I've been trying to find the right set of commands to right a script but it seems to evade me. Thanks in advance, and I did look at the scripting for dummies and didn't see any math examples.
Kris
First off spelling and writing commands when scripting(coding) is very important commands to right a script ==> commands to write a script When it comes to a script you don't mention how you are retrieving the value. In vMix scripting using vb.net one usually has to retrieve datasource data through a title (simplest way). Do some logic or conversion on that and like in this case send to your title And put the whole thing in a loop for repeated checking Code:Do While true
Dim text as string = Input.Find("title.gtzip").Text("Headline.Text")
Dim value As Integer = Integer.Parse(text)
Dim abs1 As Integer = Math.Abs(value)
API.Function("SetText",Input:="title.gtzip" , SelectedName:="Description.Text" , Value:=abs1)
Sleep(500)
Loop
' or for short
Do While true
API.Function("SetText",Input:="title.gtzip" , SelectedName:="Description.Text" , Value:=Math.Abs(Integer.Parse(Input.Find("title.gtzip").Text("Headline.Text"))))
Sleep(500)
Loop
|
Hey All! I was curious if anyone has a simple scripting solution to continuously check whether or not a data source is positive and if it's not, take the abs of it and replace the data feed with the abs of that number. I've tried to use 'newnumber = math.abs(oldnumber)' and then using 'API.Function("SetText",Input:=scoreboard , Value:=newballon, SelectedName:="Ballon.Text")' but running that in a continuous script seems to be producing no solution. The Context is I have a scoreboard sending Vmix a JSON data stream in American Football. Depending on field position the ball location, the scoreboard will send a negative number for field position. I've been trying to find the right set of commands to right a script but it seems to evade me. Thanks in advance, and I did look at the scripting for dummies and didn't see any math examples.
Kris
|
Originally Posted by: Wade  This is a live sport setting - I have an animated score bug. I am adding the clock via a camera shooting the scoreboard. (The company is not willing to spend money on anything else) I need the camera to be delayed for about a second in order for the animation to finish. The camera is a part of the score bug via the multiview function. I've tried triggers to delay it coming in, but nothing has worked. I know I could bring the camera in as another overlay, but during the game I have other things going on with all of the overlays - so I do not want to use an overlay just for this purpose. Any ideas? This will work with a delay in an OnOverlayIn trigger on the scorebug input and the LayerOn function (combined with OnOverlayOut and LayerOff). What have you tried so far?
|
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close