Take Screenshot
Makes a screenshot from a scene or source
Parameters
Connectionrequired
Select
Select the configured OBS Studio Connection to connect to
- Select
Any
to trigger on any connection
Scenerequired
String
Select the scene from this dropdown list, you can also manually enter a scene name.
Sourcerequired
String
Select the source from this dropdown list, you can also manually enter a scene name.
File Pathrequired
File
Select the file path for the screenshot
Qualityrequired
Slider
Select the image quality or leave as Auto
Variables
The following variables will be populated after executing this sub-action:
Description | Example | ||
---|---|---|---|
filedatetime | DateTime | Date Time variable that can be used for file name | 8/4/2023 10:56:06 AM |
screenshotFile | string | The full path to the screenshot that was taken |
|
C# Usage
public bool ObsTakeScreenshot(string source, string path, int quality = -1, int connection = 0)