From Characterworks help, CW Remote Control Server which listens to requests at port 5201. It accepts HTTP POST requests containing JSON-encoded commands.
So an automation solution such as JustMacros or PowerShell can automate both ATEM and CW. Can't be controlled from the broadcast panel (although there is a macro trick JM has to launch a JM script when a BMD script is run). Can be executed from keyboard shortcut, X-Keys, Midi or Arduino GPIO
Here is a tested PowerShell script to start playing a motion:
- Code: Select all
$url = "http://localhost:5201/"
$command = '{ "action" : "play_motions", "motions" : [ "Motion 1" ], "channel" : "live1" }'
$bytes = [System.Text.Encoding]::ASCII.GetBytes($command)
$web = [System.Net.WebRequest]::Create($url)
$web.Method = "POST"
$web.ContentLength = $bytes.Length
$web.ContentType = "application/x-www-form-urlencoded"
$stream = $web.GetRequestStream()
$stream.Write($bytes,0,$bytes.Length)
$stream.close()
$reader = New-Object System.IO.Streamreader -ArgumentList $web.GetResponse().GetResponseStream()
$reader.ReadToEnd()
$reader.Close()
For examples of using PowerShell to also switch input source on ATEM see
https://ianmorrish.wordpress.com/v-ise/atem/