Color Generator support for ATEM Scriting

I have update the V-ISE ATEMLib.dll to support the ATEM color generator inputs.

Sample script showing how to convert RGB value to HSL and cycling through the range of Hue values as per this video is shown below.


#Color Inputs
$ColorGen= $atem.GetColorInputs()
$ColorGen1 = $ColorGen[0]
#RGB Conversion
$RGB = [System.Drawing.Color]::FromArgb(0,254,0)
$ColorGen1.Hue = $rgb.GetHue()
$ColorGen1.Saturation = $rgb.GetSaturation()
$ColorGen1.Luma = $rgb.GetBrightness()
start-sleep -Seconds 5
#Loop through Hue range
for ($i=1; $i -le 360; $i++)
{
    $ColorGen1.Hue =$i
    start-sleep -Milliseconds 50
    if($i -eq 359){$i=1}
}

 

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