Skip to content

Commit fc7832c

Browse files
StartAutomatingStartAutomating
authored andcommitted
fix: -Scene parameter defaults ( Fixes #210 )
1 parent 853a1cb commit fc7832c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Commands/Sources/Set-OBSSwitchSource.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ function Set-OBSSwitchSource {
300300
}
301301

302302
if (-not $myParameters["Scene"]) {
303-
$myParameters["Scene"] = Get-OBSCurrentProgramScene
303+
$myParameters["Scene"] = Get-OBSCurrentProgramScene |
304+
Select-Object -ExpandProperty currentProgramSceneName
304305
}
305306

306307
$myParameterData = [Ordered]@{}

0 commit comments

Comments
 (0)