- Supported Bit Versions
-
- 64-bit
- Source Code URL
- https://github.com/marktheminer/text-freetype2-mustache
- Minimum OBS Studio Version
- 30.0.0
- Supported Platforms
-
- Windows
- Mac OS X
- Linux
This is an enhancement to the Text (FreeType2) source for Windows. With it, you can enter text such as:
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:
Then, you can fill them in:
And, you see your source update:
Open up your source again, and you'll see the template as well as the preview:
As of v1.1.0 you can take advantage of DateTime functionality:
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:
And, if dj4name is defined, it'll try to render
And, then if dj4twitch is defined it will render:
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.
Note to Mac Users
Upon download, it will not let you install due to the bundle being self signed. After you see this:
You need to open Security and Privacy settings and you'll see an option about the plugin that allows you to open it anyway and that is what you need to do.
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:
Then, you can fill them in:
And, you see your source update:
Open up your source again, and you'll see the template as well as the preview:
As of v1.1.0 you can take advantage of DateTime functionality:
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.
Note to Mac Users
Upon download, it will not let you install due to the bundle being self signed. After you see this:
You need to open Security and Privacy settings and you'll see an option about the plugin that allows you to open it anyway and that is what you need to do.