This is a script I wrote for BreakCorvid's stream.
It is meant to be used in conjunction with a Text Source with a Scroll filter on it.
- Extract virgil-news-ticker.py into your OBS scripts folder. This is usually found somewhere like:
C:\Program Files (x86)\obs-studio\data\obs-plugins\frontend-tools\scripts
- Install Python 3.6. Make sure you get the right version based on your operating system.
- Create a new Text source in the scene you want the ticker to be in. Make sure you have "Use Custom Text Extants" turned OFF.
- Right click on the Text source and go to "Filters". Add a "Scroll" filter. Here is an example of the settings. The "Limit Width" option is important. I've found that 3440 is a good setting for this.
- Create a text file (.txt) in the same directory as your assets for the scene. Enter each message you want to appear on the screen on a new line. I've included an example file.
- Open OBS and go to Tools -> Scripts. Go to the "Python Settings" tab and navigate to where you installed python.exe. For me, this is in
C:\Users\$user_name\AppData\Local\Programs\Python\Python36
. It should sayLoaded Python Version: 3.6
. - Go to Tools -> Scripts and then click the plus on the bottom. Select the virgil-news-ticker.py file you put here earlier.
- It should show this menu.
- Set the "Source Name" to the Text source you created earlier.
- Set the "Source File" to the .txt file you created earlier.
- Set the "Spaces" to the amount of space you want in between each entry in the text file.
- Set "Interstitial Character" if you want certain characters to appear between entries. For example, if I have Test1 and Test2 in my txt file, and I set "Interstitial Character" to "||", the output would be Test1||Test2. If "Spacing" is set to 5, it would be Test1 || Test2.
- Click "Update".
NOTE: It is important that you click the "Update" button after making changes to the .txt file or the script properties. If you do not click the "Update" button, none of your changes will show on stream.