asCreateMask
A node that allows the user to create a greyscale mask of a input color or texture.
Parameters
Color Parameters
- Input Color
- The color used to create the mask from. It’s expected to be scene-linear.
- Input Alpha
- The alpha channel of the color used to create the mask from.
- Threshold Channel
The channel to use when applying a threshold in order to build a mask.
It can be one of
- Red
- Green
- Blue
- Alpha
- Hue
- Saturation
- Value
- CIELAB L*
- CIELAB a*
- CIELAB b*
- Average
- Luminance
- Threshold Value
- The threshold value to apply to the channel chosen.
- Threshold Function
The function to use for the threshold. It can be one of
- None
- Step
- Linear Step
- Smooth Step
- Exponential
- Double Circled Seat
- Double Circled Sigmoid
- Smoother Step
- Smoothest Step
- Threshold Contrast
- The contrast to apply when the function is Double Circled Seat (a contrast flattening curve) or Double Circled Sigmoid (a contrast increasing curve).
- Threshold Lower Bound
- The lower bound for the smoothstep, smootherstep and smootheststep functions.
- Threshold Upper Bound
- The upper bound for the smoothstep, smootherstep and smootheststep functions.
Outputs
- Result
- The new mask.