-
-
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.
Merge pull request #33 from StartAutomating/obs-powershell-sources
obs-powershell 0.1.2
- Loading branch information
Showing
263 changed files
with
2,771 additions
and
2,395 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,29 @@ | ||
function Clear-OBSScene | ||
{ | ||
<# | ||
.SYNOPSIS | ||
Clears a Scene in OBS | ||
.DESCRIPTION | ||
Clears a Scene in OBS. | ||
All inputs will be removed from the scene. | ||
This cannot be undone, so you will be prompted for confirmation. | ||
.EXAMPLE | ||
Clear-OBSScene -SceneName Scene | ||
#> | ||
[CmdletBinding(SupportsShouldProcess,ConfirmImpact='High')] | ||
param( | ||
# Name of the scene. | ||
[Parameter(ValueFromPipelineByPropertyName)] | ||
[string] | ||
$SceneName | ||
) | ||
|
||
process { | ||
if ($PSCmdlet.ShouldProcess("Clear $sceneName")) { | ||
Get-OBSSceneItem -SceneName $SceneName | | ||
Remove-OBSSceneItem | ||
} | ||
} | ||
} |
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
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
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
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
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
Oops, something went wrong.