vMix Forums
»
General
»
General Discussion
»
Shortcut to advance shootout score
Rank: Advanced Member
Groups: Registered
Joined: 5/10/2020(UTC) Posts: 104 Location: Sacramento, California Thanks: 13 times Was thanked: 5 time(s) in 5 post(s)
|
I'm building out a show and I have shortcuts for the operator to easily add one goal for either team using a +=1
But struggling a bit figuring out a simple way to do a shootout score (example: "2(5)"). I tried building an array of all the possible scores to use as a data source, but it looks like I can't select a new column, only a row. I'm sure someone here must have solved this already?
Thanks in advance!
- Geoff
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Geoff B I'm building out a show and I have shortcuts for the operator to easily add one goal for either team using a +=1
But struggling a bit figuring out a simple way to do a shootout score (example: "2(5)"). I tried building an array of all the possible scores to use as a data source, but it looks like I can't select a new column, only a row. I'm sure someone here must have solved this already?
Thanks in advance!
- Geoff if understood correctly want to change the 2 but display it as 2(5) ? - if using the combinations from a daat source put them in a column instead of rows ? - use a hidden text field in your title and put the individual score there with your +=1 , let a small script read that and format that into a 2(5) string to be put in the visible textfield
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/10/2020(UTC) Posts: 104 Location: Sacramento, California Thanks: 13 times Was thanked: 5 time(s) in 5 post(s)
|
Originally Posted by: doggy Originally Posted by: Geoff B I'm building out a show and I have shortcuts for the operator to easily add one goal for either team using a +=1
But struggling a bit figuring out a simple way to do a shootout score (example: "2(5)"). I tried building an array of all the possible scores to use as a data source, but it looks like I can't select a new column, only a row. I'm sure someone here must have solved this already?
Thanks in advance!
- Geoff if understood correctly want to change the 2 but display it as 2(5) ? - if using the combinations from a daat source put them in a column instead of rows ? - use a hidden text field in your title and put the individual score there with your +=1 , let a small script read that and format that into a 2(5) string to be put in the visible textfield I've tried a few different ways. The score is just an integer 1, 2, 3, etc unless it goes to a penalty shootout, then it would become 3(0), 3(1), 3(2), etc. I wasn't aware that you could read the contents of a text field. I tried using that knowledge to write this little script that would take the score from the text field and use that to jump to the correct row in a data source (from there, the operator could just hit a "NextRow" shortcut. But there's something wrong with my syntax and my eyes are getting blurry. Code:'Read current home score from title and define variable
dim stringVal as string = Input.Find("fifascore.gtzip").Text("HomeScore.Text")
dim decimalVar as decimal = Decimal.Parse(stringVal)
dim newRow as decimal = 16*decimalVar
'Select a new starting row in the data source
API.Function("DataSourceSelectRow",value:="HomeShootout","Shooutout_Score",newRow)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: Geoff B I've tried a few different ways. The score is just an integer 1, 2, 3, etc unless it goes to a penalty shootout, then it would become 3(0), 3(1), 3(2), etc.
no need for data source etc as mentioned make some text fields invisible in the title say one for the goals and one for the shootouts: goals(shootout) call each of the functions with a shortcut , one to update the score and one to update the shootout per team Code:one for the score update
Input.Find("shootout.gtzip").Text("goal.Text")+=1 'invisible
Input.Find("shootout.gtzip").Text("Score.Text") = Input.Find("shootout.gtzip").Text("goal.Text") & "("& Input.Find("shootout.gtzip").Text("shootout.Text") & ")"
'and óne for the shootout
Input.Find("shootout.gtzip").Text("shootout.Text")+=1 'invisible
Input.Find("shootout.gtzip").Text("Score.Text") = Input.Find("shootout.gtzip").Text("goal.Text") & "(" & Input.Find("shootout.gtzip").Text("shootout.Text") & ")"
score here is displayed as a(b) or put them into a ScriptStartDynamic shortcut directly
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/10/2020(UTC) Posts: 104 Location: Sacramento, California Thanks: 13 times Was thanked: 5 time(s) in 5 post(s)
|
Originally Posted by: doggy Originally Posted by: Geoff B I've tried a few different ways. The score is just an integer 1, 2, 3, etc unless it goes to a penalty shootout, then it would become 3(0), 3(1), 3(2), etc.
no need for data source etc as mentioned make some text fields invisible in the title say one for the goals and one for the shootouts: goals(shootout) call each of the functions with a shortcut , one to update the score and one to update the shootout per team Code:one for the score update
Input.Find("shootout.gtzip").Text("goal.Text")+=1 'invisible
Input.Find("shootout.gtzip").Text("Score.Text") = Input.Find("shootout.gtzip").Text("goal.Text") & "("& Input.Find("shootout.gtzip").Text("shootout.Text") & ")"
'and óne for the shootout
Input.Find("shootout.gtzip").Text("shootout.Text")+=1 'invisible
Input.Find("shootout.gtzip").Text("Score.Text") = Input.Find("shootout.gtzip").Text("goal.Text") & "(" & Input.Find("shootout.gtzip").Text("shootout.Text") & ")"
score here is displayed as a(b) or put them into a ScriptStartDynamic shortcut directly Oh my gosh THANK YOU so much! I never would have come up with this on my own.
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Shortcut to advance shootout score
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