Skip to content

Commit

Permalink
Fixing filters documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed May 28, 2023
1 parent 03b7b63 commit 4b05c48
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Commands/Filters/Set-OBSScrollFilter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function Set-OBSScrollFilter {
Adds or Changes a Scroll Filter on an OBS Input.
This allows you to scroll horizontally or vertically.
.EXAMPLE
$stars = Show-OBS -Uri https://pssvg.start-automating.com/Examples/Stars.svg -Force
$stars | Set-OBSScrollFilter -HorizontalSpeed 100 -VerticalSpeed 100
Show-OBS -Uri https://pssvg.start-automating.com/Examples/Stars.svg |
Set-OBSScrollFilter -HorizontalSpeed 100 -VerticalSpeed 100
#>

Expand Down Expand Up @@ -142,8 +142,13 @@ function Set-OBSScrollFilter {
# and re-add our result.
$outputAddedResult = Add-OBSInput @addSplat *>&1
} else {
# Otherwise, get the input from the filters.
Get-OBSSourceFilter -SourceName $addSplat.SourceName -FilterName $addSplat.FilterName
# Otherwise, get the existing filter.
$existingFilter = Get-OBSSourceFilter -SourceName $addSplat.SourceName -FilterName $addSplat.FilterName
# then apply the settings
$existingFilter.Set($addSplat.filterSettings)
# and output them
$existingFilter
# (don't forget to null the result, so we don't show this error)
$outputAddedResult = $null
}
}
Expand Down

0 comments on commit 4b05c48

Please sign in to comment.