vMix Forums
»
General
»
General Discussion
»
Data update in the graphic after a new number in the JSON file
Rank: Advanced Member
Groups: Registered
Joined: 9/27/2019(UTC) Posts: 48 ![Estonia Estonia](/Content/images/flags/EE.png) Location: Kuressaare
|
Hi.
My JSON url file displays information like "ptxt_e":"7;7;7;7;7;6;6.5;6.5;7;7.5;7;7;6.5;7;7.5;7;7;;" how can I make a script for vmix, so that when a new number is added, no matter how many numbers it already has in a row, it automatically takes the name and club from another JSON url file
if in this example there are 17 numbers in total, then if, for example, 18 numbers are now added, then the name and club behind the 18 order numbers will also be taken from the second JSON file and that it automatically updates the graphics when a new number is created in the JSON url file
Thank you
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,171 ![Belgium Belgium](/Content/images/flags/BE.png) Location: Belgium Thanks: 288 times Was thanked: 942 time(s) in 778 post(s)
|
Originally Posted by: NSCPro ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Hi.
My JSON url file displays information like "ptxt_e":"7;7;7;7;7;6;6.5;6.5;7;7.5;7;7;6.5;7;7.5;7;7;;" how can I make a script for vmix, so that when a new number is added, no matter how many numbers it already has in a row, it automatically takes the name and club from another JSON url file
if in this example there are 17 numbers in total, then if, for example, 18 numbers are now added, then the name and club behind the 18 order numbers will also be taken from the second JSON file and that it automatically updates the graphics when a new number is created in the JSON url file
Thank you vMix scripting can not process JSON files
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 410 ![Greece Greece](/Content/images/flags/GR.png) Location: athens Thanks: 115 times Was thanked: 63 time(s) in 59 post(s)
|
Originally Posted by: NSCPro ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Hi.
My JSON url file displays information like "ptxt_e":"7;7;7;7;7;6;6.5;6.5;7;7.5;7;7;6.5;7;7.5;7;7;;" how can I make a script for vmix, so that when a new number is added, no matter how many numbers it already has in a row, it automatically takes the name and club from another JSON url file
if in this example there are 17 numbers in total, then if, for example, 18 numbers are now added, then the name and club behind the 18 order numbers will also be taken from the second JSON file and that it automatically updates the graphics when a new number is created in the JSON url file
Thank you Hello. Cause you say for graphics. Maybe if you use bitfocus companion you can add a trigger that will watch the variable of the graphics field input (maybe hidden field in the graphics title) and when it changes and maybe combine it with an expression,do an action.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/27/2019(UTC) Posts: 48 ![Estonia Estonia](/Content/images/flags/EE.png) Location: Kuressaare
|
But Data Source read JSON file. If someway using Data Source to make script? Every new number on next line
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/27/2019(UTC) Posts: 48 ![Estonia Estonia](/Content/images/flags/EE.png) Location: Kuressaare
|
something like that, but this not correctly Quote: ' Defineeri muutujaid dim punktid as string dim nimetused() as string dim nimetusedCount as integer dim punktidArray() as string
' Laadi punktid_e string punktid = API.Function("DataSourceSelect", value:="Võistleja Tulemus|punktid_e|Value")
' Laadi kõik nimetused ABC2 väljalt nimetusedCount = CInt(API.Function("DataSourceSelect", value:="Nimetused|ABC2|RowCount")) ReDim nimetused(nimetusedCount - 1)
for i as integer = 0 to nimetusedCount - 1 nimetused(i) = API.Function("DataSourceSelect", value:="Nimetused|ABC2|Value", row:=i) next
' Eralda punktid stringist punktidArray = Split(punktid, ";")
' Tühjenda kõik varem kuvatud andmed For i as integer = 1 To nimetusedCount API.Function("SetText", inputName:="Tulemuse Kuvamine", value:="") Next
' Kuvame punktid ja nimetused For i as integer = 0 to UBound(punktidArray) - 1 if punktidArray(i) <> "" then dim currentName as string = nimetused(i) ' Värskenda Text Inputi tekst API.Function("SetText", inputName:="Tulemuse Kuvamine", value:=currentName) ' Oota mõni hetk, et näidata nimetus Sleep(1000) ' Kui Sleep ei tööta, proovi selle eemaldamist või asendamist end if Next
![](/Themes/yafpro/icon_file.gif) Screenshot 2024-07-25 at 14.56.36.png (608kb) downloaded 0 time(s).![](/Themes/yafpro/icon_file.gif) Screenshot 2024-07-25 at 14.55.39.png (1,028kb) downloaded 0 time(s).
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Data update in the graphic after a new number in the JSON file
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