vMix Forums
»
General
»
GT
»
Clear Text Value on Load in Title
Rank: Newbie
Groups: Registered
Joined: 3/7/2022(UTC) Posts: 2 ![Australia Australia](/Content/images/flags/AU.png)
|
I have set up a "Competitors List" Title with 12 available spots. I have this mapped to a Google sheet data source that is programatically filtered for different categories.
Some categories may have 8 competitors, and others may only have 4. I have statically mapped the title values to a particular row for each spot. It works great and loads the data as expected, however when I change the list to a category with fewer competitors in the list,
the previous data for positions 5-8 still remains.
Is there any suggestions with code how I can clear that pre-existing text values in the title when there are fewer competitors than the previous category? I'm pretty new to scripting and looking for some guidance.
Cheers Darren
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2017(UTC) Posts: 189 ![Estonia Estonia](/Content/images/flags/EE.png) Thanks: 1 times Was thanked: 52 time(s) in 42 post(s)
|
In sheets, after the 8th competitor, add row that has just "x" in all the columns. This should force vMix to load entire table. The problem you are facing is due to the fact, that vMix loads only rows until there is data, since your table ends at row 5 for example, rest of the empty rows are not loaded. After you add x-es after 8th row, vMix is forced to read data until that row.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/7/2022(UTC) Posts: 2 ![Australia Australia](/Content/images/flags/AU.png)
|
Thanks MartLeib
The problem is that the google sheet data is written dynamically each time - I have established a workaround in the interim by writing a web scripting function SetText to add a space to each field which visually clears the title then just reload the title.
|
|
|
|
vMix Forums
»
General
»
GT
»
Clear Text Value on Load in Title
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