We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2246d3 commit 76bde8aCopy full SHA for 76bde8a
1 file changed
obs-powershell.types.ps1xml
@@ -37,6 +37,20 @@ $this |
37
38
</Script>
39
</ScriptMethod>
40
+ <ScriptMethod>
41
+ <Name>FitToScreen</Name>
42
+ <Script>
43
+ $videoSettings = Get-OBSVideoSettings
44
+
45
+$this | Set-OBSSceneItemTransform -SceneItemTransform ([PSCustomObject][Ordered]@{
46
+ alignment = 0
47
+ height = $videoSettings.outputHeight
48
+ positionX = [int]($videoSettings.outputWidth / 2)
49
+ positionY = [int]($videoSettings.outputHeight / 2)
50
+ width = $videoSettings.outputWidth
51
+})
52
+ </Script>
53
+ </ScriptMethod>
54
<ScriptMethod>
55
<Name>Lock</Name>
56
<Script>
0 commit comments