Text (GDI+) With Templates

Text (GDI+) With Templates 1.2.2

Supported Bit Versions
  1. 64-bit
Source Code URL
https://github.com/marktheminer/obs-text-mustache
Minimum OBS Studio Version
30.0.0
Supported Platforms
  1. Windows
This is an enhancement to the Text (GDI+) source for Windows. With it, you can enter text such as:

1706499277975.png

Then, you can go to Tools->Edit Text (GDI+) With Templates Variables

That will show you the variables that it has found across all of your scenes:

1706499339025.png


Then, you can fill them in:

1706499429934.png


And, you see your source update:

1706499463985.png


Open up your source again, and you'll see the template as well as the preview:

1706499499424.png


As of v1.1.0 you can take advantage of DateTime functionality:

1707017431321.png


It updates every quarter of a second (250ms).

You can also take advantage of conditional rendering as of v1.2.0.

You can now do:

Code:
{{#if dj4name}}   {{dj4name}} {{#if dj4twitch}}- {{dj4twitch}}@twitch{{/if dj4twitch}}{{/if dj4name}}

And, if dj4name is defined, it'll try to render
Code:
   {{dj4name}} {{#if dj4twitch}}- {{dj4twitch}}@twitch{{/if dj4twitch}}

And, then if dj4twitch is defined it will render:

Code:
   {{dj4name}} - {{dj4twitch}}@twitch

but of course with {{dj4name}} and {{dj4twitch}} substituted with whatever they are defined to. Nesting is shown above to show that it supports it, you don't have to do complex things like that.
Author
markjay
Downloads
1,307
Views
6,592
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from markjay

Latest updates

  1. Fixed a bug of excessive new lines

    Sometimes there was only 1 new line, but sometimes there were more than one and that lead to issues.
  2. corrected tag

    corrected tag for bug fix release
  3. bug fix for v1.2.0

    Right after publishing v1.2.0, I found that if I changed anything in my scene collection that...
Top