Effects/ZoomOut.OBS.FX.ps1
<# .SYNOPSIS Zooms out from an item .DESCRIPTION Zooms out from an item, scaling from 200% to 0%. #> param( # The name of the scene. [string] $SceneName, # The name [string] $SceneItemID, # The start zoom. By default, 200% (twice normal size) $StartZoom = "200%", # The end zoom. By default, 0% (effectively invisible) $EndZoom = "0%", # The duration (by default, one second) [timespan] $Duration = "00:00:01" ) if (-not $SceneName -and $this -and $this.SceneName) { $SceneName = $this.SceneName } if (-not $SceneItemID -and $this -and $this.SceneItemID) { $SceneItemID = $this.SceneItemID } if (-not $SceneItemID -and $SceneName) { return } $sceneItem = if ($this.SceneName -and $this.SceneItemID) { $this } elseif ($SceneItemID) { Get-OBSSceneItem -SceneName $this.SceneName | Where-Object { $_.SceneItemID -eq $SceneItemID -or $_.SourceName -eq $SceneItemID } } # $this.FitToScreen() $this.scale( $StartZoom, $Duration, $EndZoom, $true ) |