Changing HSV of a Material Instance?

Hello Everyone!! I was curious if there was a way to adjust the Hue, Saturation, and Value (HSV) of a material throught blueprint? I found ways to adjust the Saturation with the “Desaturation” node, but there’s nothing for Hue or Value.

Any idea of what I should do?

Anybody? :frowning:

Well, I guess you could just create a parameter in your shader, and then modifiy this parameter with standard SetScalarParameterValue.
In the shader, just add a HueShift Node right before the basecolor, plug a parameter in HueShiftPercentage, and there you go. For the brightness, probably a simple multiply will do.
Sounds good to you ?

1 Like

This is an old post but in case people go looking for this they should know HueShift does not behave as expected in that saturation is not kept during hue shifts. It also behaves differently depending on your input colour. It’s pretty subtle most of the time but it’s there. Plug in a cyan color, shift it 20% and you’ll end up with a 50% desaturated color, so that’s pretty extreme. Plug in red and you’ll be better off, still not accurate even with tonemapper switched off.

If you need to be accurate you’d have to look at creating something yourself.

1 Like