logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Geoff B  
#1 Posted : Saturday, April 16, 2022 11:29:40 AM(UTC)
Geoff B

Rank: Advanced Member

Groups: Registered
Joined: 5/10/2020(UTC)
Posts: 104
Man
United States
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
doggy  
#2 Posted : Saturday, April 16, 2022 3:36:26 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: Geoff B Go to Quoted Post
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
Geoff B  
#3 Posted : Saturday, April 16, 2022 10:50:38 PM(UTC)
Geoff B

Rank: Advanced Member

Groups: Registered
Joined: 5/10/2020(UTC)
Posts: 104
Man
United States
Location: Sacramento, California

Thanks: 13 times
Was thanked: 5 time(s) in 5 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: Geoff B Go to Quoted Post
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)

doggy  
#4 Posted : Saturday, April 16, 2022 11:37:30 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,218
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: Geoff B Go to Quoted Post

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
Geoff B  
#5 Posted : Sunday, April 17, 2022 12:39:27 AM(UTC)
Geoff B

Rank: Advanced Member

Groups: Registered
Joined: 5/10/2020(UTC)
Posts: 104
Man
United States
Location: Sacramento, California

Thanks: 13 times
Was thanked: 5 time(s) in 5 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: Geoff B Go to Quoted Post

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.
Users browsing this topic
Guest (3)
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.