vMix Forums
»
General
»
GT
»
Using Data Source For Page Animation
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,209 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: AgentPete 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2019(UTC) Posts: 552
Thanks: 62 times Was thanked: 129 time(s) in 117 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 post(s)
|
Originally Posted by: doggy Originally Posted by: AgentPete 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 post(s)
|
Originally Posted by: dmwkr 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,209 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: AgentPete 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"
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,209 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: dmwkr 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
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 post(s)
|
Originally Posted by: doggy Originally Posted by: dmwkr 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 post(s)
|
Originally Posted by: doggy Originally Posted by: AgentPete 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...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,209 Location: Belgium Thanks: 291 times Was thanked: 954 time(s) in 789 post(s)
|
Originally Posted by: AgentPete 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#post84255Code: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
|
2 users thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/13/2017(UTC) Posts: 111 Location: London
Thanks: 53 times Was thanked: 8 time(s) in 2 post(s)
|
Originally Posted by: doggy Originally Posted by: AgentPete Thank you... much appreciated :)
|
|
|
|
vMix Forums
»
General
»
GT
»
Using Data Source For Page Animation
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