Updated Macro time restrictions (markdown)

WarmUpTill
2022-06-13 22:35:18 +02:00
parent 05c9dba807
commit c3bc8c8e63

@@ -1,8 +1,8 @@
Most macro conditions can optionally be expanded upon with a **time restriction**.
To add a time restriction to an existing condition click the small clock icon next to the condition type.
Most macro conditions can optionally be expanded upon with a **duration modifier**.
To add a duration modifier to an existing condition click the small clock icon next to the condition type.
![](https://obsproject.com/forum/attachments/addtimerestriction-png.78716/)
There are three types of time restrictions:
There are four types of duration modifiers:
* "For at least X amount of time" will result in the condition to only return true if it was true for at least X amount of time.
For example, assuming you just switched to scene "A", the following condition will return false for the first three seconds.
@@ -15,8 +15,13 @@ Afterwards it will once again return false.
![](https://obsproject.com/forum/attachments/forexactly-png.78185/)
* "For at most X amount of time" will result in the condition to only return true for at most X amount of time, after which it will return false.
If the condition - ignoring the time constraint - will return false the time restriction will be reset.
If the underlying condition - ignoring the duration modifier - will return false the duration modifier will be reset.
For example, assuming you just switched to scene "A", the following condition will return true for the first three seconds the scene is active.
After three seconds have passed and the scene is still active the condition will then return false.
If you should switch to a different scene and switch back to "A" the condition will once again return true for the first three seconds of "A" being the active scene.
![](https://obsproject.com/forum/attachments/atmost-png.78191/)
![](https://obsproject.com/forum/attachments/atmost-png.78191/)
* "Within the last X amount of time" will result in the condition to return true for X amount of time, even after the underlying condition is false.
For example, assuming you just switched to scene "A", the following condition will return true when scene "A" is active, but also return true if you just switched away from scene "A" within the last X seconds.
![Within the last](https://user-images.githubusercontent.com/19472752/173440595-a8f41c7a-d325-4c63-9ccb-8d7b987cd8d8.PNG)