Skip to content

Commit

Permalink
Adding .Blend() and .BlendMode (Fixes #53)
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Jan 2, 2023
1 parent 9c661f4 commit b493648
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions obs-powershell.types.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
<Type>
<Name>OBS.GetSceneItemList.Response</Name>
<Members>
<ScriptMethod>
<Name>Blend</Name>
<Script>
param([string]$BlendMode)

if ($blendMode -cnotmatch '^OBS_BLEND_') {
$blendMode = "OBS_BLEND_$($blendMode.ToUpper())"
}
$this |
Set-OBSSceneItemBlendMode -SceneItemBlendMode $blendMode

</Script>
</ScriptMethod>
<ScriptMethod>
<Name>Delete</Name>
<Script>
Expand Down Expand Up @@ -43,6 +56,13 @@

</Script>
</ScriptMethod>
<ScriptProperty>
<Name>BlendMode</Name>
<GetScriptBlock>
$this.sceneItemBlendMode -replace '^OBS_BLEND_'

</GetScriptBlock>
</ScriptProperty>
<ScriptProperty>
<Name>Enabled</Name>
<GetScriptBlock>
Expand Down

0 comments on commit b493648

Please sign in to comment.