-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OBS.Input.Disable/EnableAllFilter(s) ( Fixes #183 )
- Loading branch information
James Brundage
committed
Feb 13, 2024
1 parent
cfd7330
commit 993a2f1
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@{ | ||
SourceName = 'inputName' | ||
EnableAllFilters = 'EnableAllFilter' | ||
DisableAllFilters = 'DisableAllFilter' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<# | ||
.SYNOPSIS | ||
Quickly disables all filters | ||
.DESCRIPTION | ||
Quickly disables all filters, except for a list of provided names | ||
#> | ||
param( | ||
# A list of filter names to leave disabled. | ||
[string[]] | ||
$ExceptFilterName | ||
) | ||
|
||
$this.Filters | | ||
Where-Object FilterName -NotIn $ExceptFilterName | | ||
Foreach-Object { $_.Enable($true) } | | ||
Send-OBS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<# | ||
.SYNOPSIS | ||
Quickly enables all filters | ||
.DESCRIPTION | ||
Quickly enables all filters, except for a list of provided names | ||
#> | ||
param( | ||
# A list of filter names to leave disabled. | ||
[string[]] | ||
$ExceptFilterName | ||
) | ||
|
||
$this.Filters | | ||
Where-Object FilterName -NotIn $ExceptFilterName | | ||
Foreach-Object { $_.Enable($true) } | | ||
Send-OBS |