RgbToHsvDisplayFilter

Overview

The RgbToHsvDisplayFilter takes in a RGB render input and converts it to HSV, and vice versa.


Attribute Reference

Advanced attributes

invert_mask

Bool
default: False

Invert the value of the mask

mix

Float
default: 1.0

Blend [0,1] between input and output

General attributes

input

RenderOutput
default: None

RenderOutput to use in the RgbToHsv operation

mask

RenderOutput
default: None

RenderOutput used to mask the output, revealing input1

mode

Int enum
  0 = “rgb_to_hsv” (default)
  1 = “hsv_to_rgb”

Specifies whether you are converting rgb->hsv or hsv->rgb


Examples

local beauty = RenderOutput("/output/beauty") {
    ["file_name"] = "result_tmp.exr",
    ["result"] = "beauty",
}

local rgbToHsv = RgbToHsvDisplayFilter("/display/rgbToHsv") {
    ["input"] = beauty,
    ["mode"] = "rgb_to_hsv"
}

local hsvToRgb = RgbToHsvDisplayFilter("/display/hsvToRgb") {
    ["input"] = rgbToHsv,
    ["mode"] = "hsv_to_rgb"
}

RenderOutput("/output/rgb_to_hsv") {
    ["file_name"] = "result0.exr",
    ["result"] = "display filter",
    ["display_filter"] = rgbToHsv,
    ["channel_name"] = "rgb_to_hsv"
}

RenderOutput("/output/hsv_to_rgb") {
    ["file_name"] = "result0.exr",
    ["result"] = "display filter",
    ["display_filter"] = hsvToRgb,
    ["channel_name"] = "hsv_to_rgb"
}