diff --git a/Commands/Filters/Set-OBSScrollFilter.ps1 b/Commands/Filters/Set-OBSScrollFilter.ps1 index d73fba55b..b7da047ae 100644 --- a/Commands/Filters/Set-OBSScrollFilter.ps1 +++ b/Commands/Filters/Set-OBSScrollFilter.ps1 @@ -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 #> @@ -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 } }