Skip to content

Instantly share code, notes, and snippets.

@yannisHD
yannisHD / HyperDeck_Console.ps1
Created February 25, 2021 22:46 — forked from imorrish/HyperDeck_Console.ps1
Use PowerShell to control BlackMagic HyperDeck
## HyperDeckTest.ps1
## By Ian Morrish
## Control Blackmagic HyperDesk via Ethernet from Windows PowerShell. PowerShell is part of all modern Windows desktop/server products
## see https://technet.microsoft.com/en-us/scriptcenter/powershell.aspx
##
## To run the script requires enabling PowerShell Script file execution. Run the following command to allow only local scripts to be executed
## set-executionpolicy remotesigned
#
#run with command line e.g.
# PS > .\HyperDeckTest.ps1 -remoteHost "10.0.0.34" -commands @('remote: override: true', 'goto: clip id: 2','play: single clip: true')
#Assume we are in the directory with all required files
add-type -path '.\StreamDeckSharp.dll'
#don't have native streamdeck software running or you get an error
$deckInterface = [StreamDeckSharp.StreamDeck]::OpenDevice()
function inputevent($key){
if($key.IsDown){
#run a supersource annimation when button is pressed
switch($key.key){
#0 is top right key
@yannisHD
yannisHD / ATEM_Multiview.ps1
Created February 25, 2021 22:45 — forked from imorrish/ATEM_Multiview.ps1
Windows PowerShell script to show ATEM Multiview using ffplay and touch overlay to switch ATEM inputs
# Ian Morrish
# https://ianmorrish.wordpress.com
# Powershell script to to allow touch screen control of ATEM by overlaying multiview source with transparent WPF grid
# Any USB 3 capture card that can be detected by ffplay (Direct Show drivers) can be used to display the multiView
#launch ffplay
start-process -filepath c:\tools\launchcamlink.cmd
Start-Sleep 2
function Show-Process($Process, [Switch]$Maximize)
{
@yannisHD
yannisHD / AnimateSupersource.ps1
Created February 25, 2021 22:44 — forked from imorrish/AnimateSupersource.ps1
Animate Blackmagic ATEM Supersource box layouts using Windows PowerShell
# See https://ianmorrish.wordpress.com for more info and prerequisites
# Tranlated from LUA code provided by Doug Johnson https://djp.li/supersource
function ConnectToATEM()
{
Try{
$ATEMipAddress = (Get-ItemProperty -path 'HKCU:\Software\Blackmagic Design\ATEM Software Control').ipAddress
$DocumentsPath = [Environment]::GetFolderPath("MyDocuments") + '\windowspowershell\SwitcherLib.dll'
add-type -path $DocumentsPath #'SwitcherLib.dll'
$Global:atem = New-Object SwitcherLib.Switcher($ATEMipAddress)
# Script created by Ian Morrish
# See https://ianmorrish.wordpress.com/2019/03/02/atem-wireless-multiviewer-with-touch-switching/
# Run Newtek studio monitor first, select input and set to full screen.
# this script requires my switcherlib.dll which you can get from the site above
# after starting this script, <ALT><Tab> to see the multiview live video feed (I will automate this soon)
#Show-Process "overlay"
# Connect to ATEM
function ConnectToATEM()