Originally Posted by: SuperBill  Where do you see this key field? Is it new? I'm on the latest and I don't see KEY field in the input settings, general or advanced. You find them in the API, see: https://www.vmix.com/help28/DeveloperAPI.htmlThere are multiple ways to scripting. I prefer to give unique, telling names to the inputs in vMix, like " Scoreboard" instead of " scoreboard2025_v21.gtzip" and use these in the scripts, instead of keys/GUID. You can still move the input around, change it to a new version of the gtzip file, makes the script easier to understand when you haven't used it for a long time, and allows to use it for a completely different preset.
|
 Image.png (9kb) downloaded 15 time(s). Image.png (9kb) downloaded 15 time(s). Text.png (11kb) downloaded 15 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 16 time(s). Image.png (9kb) downloaded 15 time(s). Text.png (11kb) downloaded 15 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
|
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close