Skip to content

Scene item transform condition

WarmUpTill edited this page Feb 8, 2023 · 3 revisions

You can use the scene item transform condition to check various properties related to size and position of sources on a given scene.

Example: Switching scenes based on portrait or landscape mode resolution of a window capture source.

This example assumes that a window capture source is used to capture a window that changes its size when switching between portrait and landscape mode.

To configure the scene item transform condition first select the scene and window capture source and click the button to get the current transform state (1).

Delete all parts that are not related to the size block.
Next enable the use of regular expressions (2).
Click the small gear icon that just appeared to configure the settings for the regular expression (3).
Uncheck all settings except "Allow partial match" (4) and close the dialog.

Finally add the desired action - in this case switching to scene "Landscape scene".

Landscape

To automatically switch to the corresponding portrait scene simply create a macro similar to the following:

Portrait

It uses the "Macro" condition type in combination with the "if not" logic type to represent the inverse of the settings of the landscape macro.

Example guides

Explanations

Clone this wiki locally