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
Foffa  
#1 Posted : Friday, February 7, 2020 2:34:04 PM(UTC)
Foffa

Rank: Newbie

Groups: Registered
Joined: 1/30/2020(UTC)
Posts: 2
Norway

Thanks: 1 times
Hi

I have setup a XML Data sources in vMix where I am getting this data from an online powerlifting competition software.

<lofter>
<id>10539</id>
<navn>Caroline Hoff Hansen</navn>
<runde>2</runde>
<vekt>95.0</vekt>
<ovelse>Benkpress</ovelse>
<ovelse_kort>BP</ovelse_kort>
<kategori>Åpen</kategori>
<vektklasse>52</vektklasse>
<klokke> </klokke>
<klokke_minutter> </klokke_minutter>
<klubb>Arendal SVK</klubb>
<plassering>1</plassering>
<total>90</total>
<total_prognose>95</total_prognose>
<poeng>777.02</poeng>
<poeng_prognose>816.74</poeng_prognose>
<prognose_plassering>1</prognose_plassering>
<prognose_loft>1</prognose_loft>
<prognose_tekst>1.</prognose_tekst>
<rekorder> </rekorder>
<forsok1>90.0</forsok1>
<forsok1_status>G</forsok1_status>
<forsok2>95.0</forsok2>
<forsok2_status>D</forsok2_status>
<forsok3> </forsok3>
<forsok3_status>D</forsok3_status>
<best_kb> </best_kb>
<best_bp>90.0</best_bp>
<best_ml> </best_ml>
</lofter>

PS this data will change when it is the next lifters turn.

I have created a GT Title where this data are beeing used, but I am trying
to achieve when the forsok1_status has a value of G then forsok1 get a
green box. If forsok1_status has a value of U then forsok1 get a red box.
If forsok1_status has a value of D then
forsok1 get no box only display the value from forsok1. I am trying the title look like this (se attachment)

title.jpg (37kb) downloaded 0 time(s).

Getting it to display forsok1 was easy, but getting the red or green box behind forsok1 based on if forsok1_status is G or D was not easy
When I google around a read something by using XAML, but I am not sure how to use that in my case.

Hope someone can help
doggy  
#2 Posted : Friday, February 7, 2020 6:28:34 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 2,129
Belgium
Location: Belgium

Thanks: 116 times
Was thanked: 387 time(s) in 320 post(s)
With GT titles one could add colorImages to the title (as textbackground) and toggle their visibility according to the data with a script if your license allows it

With XAML titles one can have codebehind incorporated in the title that checks the data and changes background colors accordingly

By data is meant what is contained in a textbox in the title
difference in approach between GT and XAML title ; with GT you need a title and a separate script , with XAML The title is holding the script
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.