File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -183,13 +183,17 @@ $this | Set-OBSSceneItemTransform -SceneItemTransform $cropTable
183183 <Script >
184184 $videoSettings = Get-OBSVideoSettings
185185
186- $this | Set-OBSSceneItemTransform -SceneItemTransform ([PSCustomObject][Ordered]@{
186+ $thisTransform = $this | Get-OBSSceneItemTransform
187+
188+ $sceneItemTransform = ([Ordered]@{
187189 alignment = 0
188- height = $videoSettings.outputHeight
190+ scaleX = ([double] $videoSettings.outputWidth / $thisTransform.sourceWidth )
189191 positionX = [int]($videoSettings.outputWidth / 2)
190192 positionY = [int]($videoSettings.outputHeight / 2)
191- width = $videoSettings.outputWidth
193+ scaleY = ([double] $videoSettings.outputHeight / $thisTransform.sourceHeight )
192194})
195+
196+ $this | Set-OBSSceneItemTransform -SceneItemTransform $sceneItemTransform
193197 </Script >
194198 </ScriptMethod >
195199 <ScriptMethod >
You can’t perform that action at this time.
0 commit comments