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
416ix  
#1 Posted : Friday, February 24, 2023 11:13:36 AM(UTC)
416ix

Rank: Newbie

Groups: Registered
Joined: 2/24/2023(UTC)
Posts: 1
Canada

I run an app that pushes stats to an XML file. I don’t have any control over what the app is pushing or interpreting. I’m hoping I can make changes with a supplemental XML acting as a translator.

Basically if I have a text field that receives numeric data, how can I tell it to show a ‘0’ (zero) when that field hasn’t yet received data?

Similarly, if I want to append a data text field with some extra text/string, how do I do that without having to place a static text field next to it?

Thanks

dmwkr  
#2 Posted : Friday, February 24, 2023 11:37:21 PM(UTC)
dmwkr

Rank: Advanced Member

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

Thanks: 62 times
Was thanked: 119 time(s) in 108 post(s)
Regarding your second question:

See https://www.vmix.com/hel...ourcesTitleMapping.html:

'Format: This option can be used to add additional text to the data, for example "Name: {0}" will output the data as "Name: Bob"'


First question, probably possible via scripting, if your vMix version allows it, for example:

In GT Title, hide the title field that is mapped to the datasource and add a (visible) static title field.

Then, via scripting:
- Read the content of the hidden and mapped title field.
- If empty, write a '0' to the visible title field, if not write the content of the hidden title field to it.
Users browsing this topic
Guest
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.