From bdd3094d04d432a14dab556fd2a346bea5a285b4 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Wed, 8 Feb 2023 19:22:17 +0100 Subject: [PATCH] Created Scene item transform condition (markdown) --- Scene-item-transform-condition.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Scene-item-transform-condition.md diff --git a/Scene-item-transform-condition.md b/Scene-item-transform-condition.md new file mode 100644 index 0000000..411f23c --- /dev/null +++ b/Scene-item-transform-condition.md @@ -0,0 +1,22 @@ +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 between portrait and landscape mode of 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](https://user-images.githubusercontent.com/19472752/217617486-9cb22255-1d28-4800-82fa-a333dc832a55.PNG) + +To automatically switch to the corresponding portrait scene simply create a macro similar to the following: + +![Portrait](https://user-images.githubusercontent.com/19472752/217617518-68aba284-7c46-4d18-967d-2b7da58e65f2.PNG) + +It uses the "Macro" condition type to reuse the inverse of the settings of the landscape macro.