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
AgentPete  
#1 Posted : Tuesday, July 20, 2021 3:29:33 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)
I’m trying to set a background colour for a player’s score, depending on whether they’re currently in the No.1 position.

The leading player’s score will be shown against a green background; otherwise, black.

Scores are held in GSheets. I’d prefer to keep the data processing out of vMix, therefore there’s a little routine in GSheets that results in a matrix holding “1” for non-winners and a “2” for winner(s).

Is it possible to simply use this as a data source with which to directly specify a page animation for the title background?

Many thanks for any help.

PC
doggy  
#2 Posted : Tuesday, July 20, 2021 4:09:49 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,229
Belgium
Location: Belgium

Thanks: 186 times
Was thanked: 583 time(s) in 482 post(s)
Originally Posted by: AgentPete Go to Quoted Post
results in a matrix holding “1” for non-winners and a “2” for winner(s).

Is it possible to simply use this as a data source with which to directly specify a page animation for the title background?


Yes with the help of a little script and a bit of workaround as not possible directly in GT title.
If not mistaken similar questions have been asked and answered in this forum
dmwkr  
#3 Posted : Tuesday, July 20, 2021 7:56:59 AM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 331

Thanks: 44 times
Was thanked: 76 time(s) in 68 post(s)
Also possible, if you are willing to use graphics as backgrounds in your GT title: Put the full path to c:\...\greenbackground.png (or black) into your data source, and you're done.
AgentPete  
#4 Posted : Wednesday, July 21, 2021 12:08:01 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: AgentPete Go to Quoted Post
results in a matrix holding “1” for non-winners and a “2” for winner(s).

Is it possible to simply use this as a data source with which to directly specify a page animation for the title background?


Yes with the help of a little script and a bit of workaround as not possible directly in GT title.
If not mistaken similar questions have been asked and answered in this forum


I've looked all the way through the forum and can't see anything relevant. I don't post requests for help without doing that first.
AgentPete  
#5 Posted : Wednesday, July 21, 2021 12:12:50 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)
Originally Posted by: dmwkr Go to Quoted Post
Also possible, if you are willing to use graphics as backgrounds in your GT title: Put the full path to c:\...\greenbackground.png (or black) into your data source, and you're done.


Yes, I can see that method could work… will try… thank you.

doggy  
#6 Posted : Wednesday, July 21, 2021 12:14:11 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,229
Belgium
Location: Belgium

Thanks: 186 times
Was thanked: 583 time(s) in 482 post(s)
Originally Posted by: AgentPete Go to Quoted Post

I've looked all the way through the forum and can't see anything relevant. I don't post requests for help without doing that first.


Check post "scripting for dummies"
doggy  
#7 Posted : Wednesday, July 21, 2021 12:16:21 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,229
Belgium
Location: Belgium

Thanks: 186 times
Was thanked: 583 time(s) in 482 post(s)
Originally Posted by: dmwkr Go to Quoted Post
Also possible, if you are willing to use graphics as backgrounds in your GT title: Put the full path to c:\...\greenbackground.png (or black) into your data source, and you're done.


More simplified only have the filename ( no extension) in your datasource and put the path to the file in the formatting of your title datasource connection like c:\...\{0}.png
thanks 1 user thanked doggy for this useful post.
AgentPete on 7/21/2021(UTC)
AgentPete  
#8 Posted : Wednesday, July 21, 2021 1:47:37 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: dmwkr Go to Quoted Post
Also possible, if you are willing to use graphics as backgrounds in your GT title: Put the full path to c:\...\greenbackground.png (or black) into your data source, and you're done.


More simplified only have the filename ( no extension) in your datasource and put the path to the file in the formatting of your title datasource connection like c:\...\{0}.png


Thanks...

Having said that I prefer to keep data processing away from vMix, GSheets can be rather temperamental about too many data requests. To the extent that we only refresh data immediately before it goes on screen, and turn it off as soon as the title goes off screen again.
AgentPete  
#9 Posted : Wednesday, July 21, 2021 1:49:44 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: AgentPete Go to Quoted Post

I've looked all the way through the forum and can't see anything relevant. I don't post requests for help without doing that first.


Check post "scripting for dummies"


OK... I was actually looking in this forum... Will check it now...

AgentPete  
#10 Posted : Wednesday, July 21, 2021 2:11:27 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)

OK. So I've read the WHOLE of this forum, and the entire “Scripting For Dummies” thread. Absolutely nothing I can use there.

I don’t know what the point is of giving such vague and frankly unhelpful advice is.
doggy  
#11 Posted : Wednesday, July 21, 2021 2:57:46 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 3,229
Belgium
Location: Belgium

Thanks: 186 times
Was thanked: 583 time(s) in 482 post(s)
Originally Posted by: AgentPete Go to Quoted Post

OK. So I've read the WHOLE of this forum, and the entire “Scripting For Dummies” thread. Absolutely nothing I can use there.

I don’t know what the point is of giving such vague and frankly unhelpful advice is.


Your goal : "I’m trying to set a background colour for a player’s score, depending on whether they’re currently in the No.1 position."


Solving with pages or images
You need to check the score value that is displayed from a datasource with a script thats check that value to select/instruct a page displayed

With images , either the "color" is tied into a Colum of the data source (path or filename _ format option) or a script checks the value in the title and loads the appropriate images based on that

Nobody said there was a ready made script specifically for that , if that is what you wanted should have said so , on the other hand all the relevant info is there to make it happen like how to read a value from a title to work from , how to make decisions and instruct changes.
In case havent seen this one regarding pages animations)


Check value in title field linked to datasource
if nr 1 then load image color x else color y (or load page x else y) (available Script functions are same as available shortcut functions)
repeat


https://forums.vmix.com/...ng-for-Dummies#post84145 ( with extra link)

https://forums.vmix.com/...ng-for-Dummies#post84255


Code:
do while true
current position  = Input.Find("Title.gtzip").Text("Position.Text") 
If position = "1" '(or whatever the data string might be or convert to a numeric value) 
  SetImage function to position 1 depicting  color 
else 
  SetImage function to other position depicting  color 
end if 
sleep(500) 'lets wait a bit before the next check
loop

'or SelectIndex for page selection instead of Setimage


There are as such various approach options (pages or image selection through script , or direct reference to images from datasource)

Approach choise determined mainly by the possibility to customize the data source content
thanks 1 user thanked doggy for this useful post.
AgentPete on 7/21/2021(UTC)
AgentPete  
#12 Posted : Wednesday, July 21, 2021 3:20:39 AM(UTC)
AgentPete

Rank: Advanced Member

Groups: Registered
Joined: 5/13/2017(UTC)
Posts: 100
Location: London

Thanks: 48 times
Was thanked: 2 time(s) in 1 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: AgentPete Go to Quoted Post


Thank you... much appreciated :)

Users browsing this topic
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.