-
Notifications
You must be signed in to change notification settings - Fork 81
Macros
Macros allow you to perform an arbitrary amount of actions if a set of conditions is met.
Macros will only be checked and executed if the plugin is running.
See here how to start and stop the plugin.
Currently supported condition types are:
- Audio
- Cursor position
- Date and time
- File
- Filter
- Hotkey
- Idle detection
- MIDI
- Macro
- Media
- OBS statistics
- OpenVR
- Plugin state
- Process
- Profile
- Recording
- Replay buffer
- Run
- Scene
- Scene item order
- Scene item transform
- Scene item visibility
- Slide Show
- Source
- Streaming
- Studio mode
- Timer
- Transition
- Variable
- Video
- Virtual camera
- Websocket
- Window title
Currently supported action types are:
- Audio
- File
- Filter
- Http
- Hotkey
- MIDI
- Macro
- Media
- Open Sound Control
- Plugin state
- Profile
- Projector
- Random
- Recording
- Replay buffer
- Run
- Scene collection
- Scene item lock
- Scene item order
- Scene item transform
- Scene item visibility
- Screenshot
- Sequence
- Source
- Streaming
- Studio mode
- Switch scene
- System tray notification
- Timer
- Transition
- Variable
- Virtual camera
- Wait
- Websocket
By default the "Macro" tab is the second tab of the settings window.
The macro tab is mainly divided into three sections:
- The list of available macros.
Each macro can be paused by unticking the checkbox next to its name. - The conditions of the currently selected macro.
- The actions of the currently selected macro.
In the following example we will create a macro to automatically switch to a scene "test1" if the output of a video source has not changed for a specified amount of time.
First we switch to the Macro tab if you have not done so already. (1) Here we add a new macro by clicking the plus symbol on the lower left (2) and enter a name for our new macro.
Now we have to add the condition we want to trigger the automated scene switch by clicking the corresponding plus symbol (1) and selecting the type of the condition we want to use (2). As we want use video based scene switching we select the type "Video".
The next step is to configure the settings of this condition.
We select the video source we want to monitor (1) and the type of monitoring we want to take place (2).
For this particular use case we choose "hos not changed".
Finally we add the time constraint by pressing the small clock icon (3) and configure it to our liking.
For more information regarding time constraints see here.
As a last step we have to specify the action that has to be performed if the condition we specified above is true.
To do this we have to add a new action to our macro by pressing the plus button in the lower middle of the macro tab.
The default action that is chose is already our desired one - "Switch scene" - so we do not have to adjust the type of the action. However we have to select the scene we want to switch to (1) the transition type we want to use (2) and the duration of the transition (3). (The duration can be left at "0" to use whatever is configured as the current transition duration)
The macro is now set up and will be active if the plugin is running.
- 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