This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Copy-ATEMUploadImages{ | |
| #<# | |
| #.Synopsis | |
| # Find all images matching ATEM resolution in a folder and upload to media pool | |
| #.Description | |
| # Uses SwitcherLib and mediaupload.exe to find all PNG images (can be changed to another format) in the specified folder | |
| # and upload them to the media pool from a starting slot number (or from 1 if not specified) | |
| # | |
| # Requires ATEMLib.dll and MediaUpload.exe in the \documents\WindowsPowerShell directory | |
| # Download them from https://1drv.ms/f/s!ApGpqMMpRLhiiv4zoZRIXcnbIInsLQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sample script using midi device to control Blackmagic ATEM Upstream Key Chroma settings | |
| # Uses these 2 projects | |
| # https://ianmorrish.wordpress.com/v-ise/atem/ | |
| # https://github.com/Psychlist1972/Windows-10-PowerShell-MIDI | |
| # | |
| add-type -path 'documents\windowspowershell\SwitcherLib.dll' | |
| Import-Module ".\Documents\WindowsPowerShell\PeteBrown.PowerShellMidi.dll" | |
| #region ATEM settings | |
| $Global:atem = New-Object SwitcherLib.Switcher("192.168.1.8") | |
| $atem.Connect() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #region About | |
| # Stript to control ATEM with X-keys 32 | |
| # | |
| # Button layout | |
| # | |
| # 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 - blue | |
| # 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 - Red | |
| # 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 -blue | |
| # 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 -red |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # I used this to jump to Blackmagic ATEM softwre audio tab with hot key | |
| # credit http://stackoverflow.com/questions/39353073/how-i-can-send-mouse-click-in-powershell | |
| $cSource = @' | |
| using System; | |
| using System.Drawing; | |
| using System.Runtime.InteropServices; | |
| using System.Windows.Forms; | |
| public class Clicker | |
| { | |
| //https://msdn.microsoft.com/en-us/library/windows/desktop/ms646270(v=vs.85).aspx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Get video hub properties and add to Excel file | |
| # Author: Ian Morrish | |
| # Website: https://ianmorrish.wordpress.com | |
| # tested on Windows 10 running in ISE with Excel 2016 | |
| # update the IP address and path to included send-tcprequest.ps1 scrit as required | |
| $VideoHupIP = "127.0.0.1" | |
| $hubcommand = @" | |
| VIDEO OUTPUT ROUTING: | |
| `r`n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # ATEM Legato Stream Deck controler | |
| # | |
| # By Ian Morrish | |
| # https://ianmorrish.wordpress.com | |
| # | |
| # Disable display and sleep mode timeouts | |
| function DisableSleepTimeout { | |
| Write-Host "Disabling display and sleep mode timeouts..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $host.ui.RawUI.WindowTitle = “Arise Tally Monitor” | |
| $stayActive = $true | |
| #Wait for ATEM to be online | |
| Do{ | |
| Start-Sleep -Seconds 10 | |
| } | |
| Until(Test-Connection -ComputerName "10.1.1.240" -Quiet) | |
| add-type -path 'C:\vise\SwitcherLib.dll' | |
| $Global:atem = New-Object SwitcherLib.Switcher("10.1.1.240") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start recording on multiple Hyperdeck's using Windows Scheduled task | |
| # | |
| # Executable: “C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” | |
| # Arguments: -NoProfile -NonInteractive -command ". c:\scripts\ScheduledRecord.ps1; exit $LASTEXITCODE" | |
| # Author: Ian Morrish | |
| # Website: https://ianmorrish.wordpress.com | |
| # tested on Windows 10. No error checking. Ensure Remote button is on. | |
| # Must "set-executionpolicy RemoteSigned" one time from PowerShell running as Administrator | |
| # update the IP address and file names as required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # File System Watcher to upload image to ATEM media pool | |
| Function ATEMUploadImage | |
| { | |
| param | |
| ( | |
| [String]$File, | |
| [Int]$Slot, | |
| [string]$ATEMip | |
| ) | |
| # Just use command line utility as dll may conflict with JustMacros |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) | |
| { |