4
$\begingroup$

I have this file where a few different materials have the same base color. I'm trying to find a way to change just the Hue on all materials at the same time.

I tried plugging a Combine HSV node into the Base Color, and then a Value node but I can't figure out a way to change the Hue value using a central controller that affects all materials... Is there a simple way to do so?

$\endgroup$
4
  • $\begingroup$ Is it for rendering or for baking ? $\endgroup$
    – Gorgious
    Commented Mar 22, 2022 at 15:14
  • $\begingroup$ @Gorgious for rendering... but does it make a difference? $\endgroup$
    – Luciano
    Commented Mar 22, 2022 at 15:53
  • $\begingroup$ If it's for rendering you can change the hue very easily in the compositor workspace $\endgroup$
    – Gorgious
    Commented Mar 22, 2022 at 18:09
  • $\begingroup$ @Gorgious ooh of course! I was just thinking if there was a way to control it before the render stage $\endgroup$
    – Luciano
    Commented Mar 23, 2022 at 9:36

1 Answer 1

9
$\begingroup$

The easiest trick for having a setting that controls the same value in multiple materials is to put the value in a Node Group and share it among the materials.

Any change you make inside the node group is shared by every user of that group.

To use a Combine HSV node as the control in the Node editor:

  • Create a material

  • Add a Combine HSV node

  • Select the Combine HSV node and Make Node Group (shortcut CTRLG)

  • Disconnect the H input from the HSV. This means you share H among all of the materials using the group but each has its own S and V You'll end up with something like this:

    Node group showing Hue separated

  • Close the node group (Shortcut Tab)

  • Connect the Color output from the new node group to the shader:

    Shader with color from node group

Having done this, you can now add the node group to your materials with the usual add command (shortcut ShiftA). It will show up in the group submenu:

Add menu showing node group

Now, when you want to change the Hue, select any material, open the node group (select it and shortcut Tab) and make your change.

You should give your node group a unique name to make it easier to find in the menu and delete the H input you're not using.

To delete the input:

  • Select the Node group
  • Tab to open it for editing.
  • Open the sidebar if it's not open (Shortcut N
  • Go to the group tab
  • Go to the inputs drop down.
  • Select each input in turn and click on the minus button Group tab showing H input ready for deletion
$\endgroup$
2
  • $\begingroup$ Good one, but you got it reversed: I want the same Hue with different SV for each material, so instead I just connected the S and V inputs to the Combine HSV node, and deleted the H. If you edit it with these changes I'll accept your answer. $\endgroup$
    – Luciano
    Commented Mar 23, 2022 at 9:57
  • $\begingroup$ @Luciano Oops. Sorry for not reading your question more carefully. Thanks for pointing that out. Answer edited. $\endgroup$ Commented Mar 23, 2022 at 15:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .