Hex To Hue Shift

Downloaded: 10

This extension is used to calculate hue and saturation values for an OBS Color Correction filter to change from an existing source color to a new target HTML hex color.

The new color will not be an exact match, although it should generally reflect the requested color.  If the OBS source has more than one color, all colors will be impacted equally by the change.

To update OBS with the hue and saturation values returned from this extension, use the Filter Change Settings command in Lioranboard with a filterSettings value similar to the following:

{"hue_shift": /$filterHue$/, "saturation": /$filterSaturation$/}

Requirements

Lioranboard v1.43 or higher

Input Values

Value Name Data Type Usage
hue String The variable name to use for the return Hue value for the Color Correction filter, between -180 and 180.  Do not use variable tags
sat String The variable name to use for the return Saturation value for the Color Correction filter, between -1 and 1.  Do not use variable tags
start_hue Real The starting predominant color hue from the OBS source.  Variable value usage requires /$ $/ tag encapsulation.
start_sat String The starting predominant color saturation level from the OBS source.  Variable value usage requires /$ $/ tag encapsulation.
Hex_color String The target six character HTML hex color code to use.  Variable value usage requires /$ $/ tag encapsulation.

Returns

Hue and Saturation values to insert into a Color Correction filter in OBS to change from an existing color to a new color.

Grayscale colors in hex_color will return a Hue of 0 and Saturation of -1 (No color)