-
Notifications
You must be signed in to change notification settings - Fork 81
Show text source with latest Twitch follower
This example will provide you with macros which set the text displayed by a text source to the most recent Twitch follower name and show this source for 5 seconds.
Creating them is quite simple. First create a Queue action or condition and select "add new queue":
Assume you have configured a macro which shows the user name of new follower you received on Twitch in text source, which looks similar to this macro:
This first grabs the Twitch follower user name and puts into the variable "Follower", then modifies the text source settings using this new variable, then shows the source for 5 seconds, and finally hides it again.
This example macro has the problem that no other macro will be run while those "long" waits are performed.
You might think that you can simply enable the option to "Run the macro in parallel to other macros", but this will only help in certain cases. It works fine, when you only receive a single follower at most every five seconds. You will run into issues, however, if you receive multiple followers within one 5 second span.
Here the first follower triggers the macro to be run and while it is running the second follower event is received. As the macro is already running the actions will not be executed.
To resolve this problem you can instead add those actions to a queue and slightly rework the macro / split it into two macros.
First the macro which does the bulk of the "work". Meaning it modifies the text source's settings and shows it for the specified amount of time:
(Note that it does not have any conditions - it will be used to as the collection of actions to add to the queue)
Second a macro which grabs the Twitch follower name and assigns it to the "Follower" variable and then add the previously created macro to the queue.
(The variable will be resolved when the action is added to the queue - unless configured differently in the queue settings)
If you want to import the example you can use this code to do so: Code:
AAAQ9Xic7VdZb+M2EP4rqtCHPeLUcrzZRd62qbdrIGkMO8n2QBDQEi0RoUiVpJykhv97Z3jI8jpOoz4UWKAPQcSZ+WaGc9KruCSpkjo++WMVC1LS+CSeFfI+WkjO5T1VEeFUmfggrkitgbsgXFM8KcI55Q1BitOCiBwkjKrhrO9YNXqg6YWYGQIKglyuZF01p0ymdzNqDBM5uLCKFc2ZNlQ1AgXR01r8WBsjRVANtAk6s0MFS6bWZ2Te8qtgecHhz4wXp1JkzDAp9CUgGgkV9F/SB/AzBnvhult0axM4tdjlXTkacNMtI84jL7SxHxFFI3T7cAvxCR16DmI9PozXBy5rH1NkNTKzijMDwZtIbc82pxXm9mi4PvCfw+Ph+sbjR6DN6dgPHQ6OG2wfkSFFn6W5o4+6VREQAEcE9E0TpzbJyDzndPI1eRMBdyZpOKyA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JW606QzxTfH50gv0tZdgLAeMhhYd12C3ZAdQt3a3q/HNSa5P8Eumkt3zg5HMC7vjenhiS9ZNjL380X7xfDDyRe/w3tmsid
- Show webcam only when speaking
- Twitch Category Changer
- Show text source with latest Twitch follower
- Detect elements on screen and hide them automatically
- Motion detection
- Start other programs when starting OBS
- Crossfading audio during scene changes
- Switch scenes randomly
- Re-shuffle VLC source
- Automatically switch scene if a game capture's target window no longer exists
- Audio based scene switching in podcast setting
- Switching scenes based on portrait or landscape mode resolution of a window capture source
- Set up a hotkey to start and stop recording with a fade from and to black
- Automatically cycle through a list of scenes
- Toggle visibility of scene items on a timer
- Advance through a list of scenes by hotkey
- Performing actions only when transitioning from A to B
- Media playlist with commercial interruptions
- Split recording of stream into chunks
- Switching scenes for Aitum Vertical plugin
- Using MIDI devices
- Change capture window of Window Capture source
- Show URLs in clipboard in browser source
- General tab overview
- Starting and stopping the plugin
- Macros explained
- Creating a macro
- Pausing macros
- Macro duration modifiers
- Exporting and importing individual macros
- Audio condition
- Cursor condition
- Date condition
- Hotkey condition
- Media condition
- Process condition
- Scene item transform condition
- Slide Show condition
- Video condition
- Audio action
- Http action
- Hotkey action
- Random action
- Scene item visibility
- Sequence action
- Action Queue example
- Variables
- Websockets
- Scripting
- Troubleshooting
- Saving and loading settings