Skip to content
WarmUpTill edited this page Oct 24, 2024 · 26 revisions

What are macros?

Macros allow you to perform a list of actions when a given set of conditions is met:

The plugin supports various types of conditions and actions:

Conditions
Actions
  • Audio
  • Clipboard
  • File
  • Filter
  • Http
  • Hotkey
  • MIDI
  • Macro
  • Media
  • Open Sound Control
  • Plugin state
  • Profile
  • Projector
  • Queue
  • 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
  • Twitch
  • Variable
  • Virtual camera
  • Wait
  • Websocket
  • Window

Macro tab overview

The "Macro" tab is the second tab of the settings window.

The macro tab is mainly divided into three sections:

  1. The list of available macros.
    Each macro can be paused by unticking the checkbox next to its name.
  2. The conditions of the currently selected macro.
  3. The actions of the currently selected macro.

ezgif-7-4695e4802d

With version 1.24.0 another section was introduced.
The "else action" section, which allows you to define actions to be executed in case the conditions are not met.
You can access it by moving the other sections up.

else

Creating a new macro

In the following example we will create a macro to automatically switch to a scene "End Scene" 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. Here we add a new macro by clicking the plus symbol on the lower left and enter a name for our new macro.

CreateMaro1

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. As we want use video based scene switching we select the type "Video".

CreateMaro2

The next step is to configure the settings of this condition. We select the video source we want to monitor (Media Source) and the type of monitoring we want to take place ("has not changed"). Finally we add a duration modifier by pressing the small clock icon and configure it to our liking.

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 and the transition type we want to use.

CreateMaro3

The macro is now set up and will be active if the plugin is running.

Here is a quick demo:
CreateMaro4

Additional macro settings

Run Macro

You can use the "Run Macro" button to test the actions of the currently selected macro.
If the macro has actions in the "else" section, you can hold down the Shift key to run them instead of the regular actions.

other-options-run

Run macro in parallel to other macros

If you check this box, the actions of the currently selected macro will be executed in parallel to the actions of other macros.
This can be useful if you have long running actions which would otherwise block the execution of other macros until they complete.

other-options-parallel

Perform actions only on condition change

If this option is checked, the actions or else-actions of the currently selected macro will only be executed when the overall condition result changed.

other-options-on-change

So for example, if you have set up the following macro the "mute" and "unmute" of the microphone will only take place when the scene was changed to or away from to the "BRB Scene" scene.
So, you can manually mute or unmute the microphone after the fact.
With the option unchecked you will not be able to manually mute or unmute the microphone as it will immediately muted or unmuted again.

image

More macro settings

Additional macro settings can be found under the gear icon in the top right of the macro tab.

other-options-other

MacroSettings

In which order are macros executed?

The macros are executed from the top to the bottom of the macro list.
So assuming you have the following macros set up and all their conditions are met ...

image

... first the actions of Macro 1 would be executed, followed by Macro 2, and finally Macro 3.

In which order are macro conditions evaluated?

The conditions are checked from the top to the bottom.
So assuming you have the following conditions set up in a given macro ...

1710329364264

... they would be evaluated as (((Scene) or File) and Audio).

Example guides

Explanations

Clone this wiki locally