Skip to content

Commit 4700b8c

Browse files
author
James Brundage
committed
Merge branch 'obs-powershell-updates' of https://github.com/StartAutomating/obs-powershell into obs-powershell-updates
2 parents 2359966 + 5b6e377 commit 4700b8c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

obs-powershell.types.ps1xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@ $this | Set-OBSSceneItemTransform -SceneItemTransform ([PSCustomObject][Ordered]
6363
$this | Remove-OBSSceneItem
6464
</Script>
6565
</ScriptMethod>
66+
<ScriptMethod>
67+
<Name>Rotate</Name>
68+
<Script>
69+
param(
70+
[Alias('Degrees', 'Rotation')]
71+
[double]
72+
$Degree
73+
)
74+
75+
$this | Set-OBSSceneItemTransform -SceneItemTransform @{
76+
rotation = $Degree
77+
}
78+
</Script>
79+
</ScriptMethod>
6680
<ScriptMethod>
6781
<Name>Unlock</Name>
6882
<Script>

0 commit comments

Comments
 (0)