John Hartman
Member
I see lots of examples of scripts that use a Text(GDI+) scene to show text. But I already have to make a custom Source (see below) and it seems clumsy to have to add TWO sources to a scene just to show a little text. Can I do text output from my Source in Lua? I see the flag OBS_SOURCE_CUSTOM_DRAW, but aside from some functions talking about rendering "textures", I haven't found anything in the dox about rendering text.
Context: I am working on a modification to
https://obsproject.com/forum/threads/control-visca-over-ip-based-cameras.136462/
That project creates a custom Source which can be added to Scenes to control changes to camera presets.
If a scene selected into Preview wants to use a camera, it first looks at the Program scene.
If the camera isn't being used, then the camera preset can be changed.
If the camera IS being used, the preset is changed when the new scene transitions from Preview to Program
In the case where change of preset is postponed, I want to show a text overlay in the Preview on the order of "camera will change to closeup when scene transitions to Program"
Context: I am working on a modification to
https://obsproject.com/forum/threads/control-visca-over-ip-based-cameras.136462/
That project creates a custom Source which can be added to Scenes to control changes to camera presets.
If a scene selected into Preview wants to use a camera, it first looks at the Program scene.
If the camera isn't being used, then the camera preset can be changed.
If the camera IS being used, the preset is changed when the new scene transitions from Preview to Program
In the case where change of preset is postponed, I want to show a text overlay in the Preview on the order of "camera will change to closeup when scene transitions to Program"