Control Resolume using PowerShell and OSC

Another useful protocol in achieving broadcast automation is Open Sound Control (OSC). There is a great .Net library that provides OSC support which works well with PowerShell.

GitHub SharpOSC

I have adopted this for my VISE project.

Here is a simple PowerShell script to control Resolume functions using OSC.


add-type -path 'C:\Users\imorrish\OneDrive\PowerShell\OSC\SharpOSC.dll'
#Connection for Resolume
$sender = new-object SharpOSC.UDPSender "192.168.1.67", 7000
#start a layer clip
$message = new-object SharpOSC.OscMessage "/layer3/clip1/connect", 1;
$sender.Send($message);
#Enable or dissable a video effect on a clip. 1 = disable, 0 = enabled
$message = new-object SharpOSC.OscMessage "/activeclip/video/effect1/bypassed", 1;
$sender.Send($message);

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s