The default socket type is float, but I would like to set it into other types, as I marked in this picture :

enter image description here

How could I do that?


1 Answer 1


Version 3.0 :

You can now dynamically change socket types in the right hand side panel of the node editor :

enter image description here

Version 2.93

Like node group inputs / outputs in the shader editor, the value type is defined at the time of creation, and can't be changed afterwards.

You have to first create a dummy link to force the type you want in the node socket. You can then relink the socket to where you want it to be linked to.

If there is an automatic cast available between the two types (for example a boolean True / False is equivalent to an integer 1 / 0), it will be converted automatically for you. Beware though at the moment I don't think there is a warning message if you try to link incompatible types (Example : link an integer to an object socket).

See :

enter image description here

Note that you can change the default, min and max value of the sockets in the right hand side panel.

  • $\begingroup$ Is there a way to do this for Material node groups too? (I have a feeling the answer is currently no.) Sometimes I include boolean toggle params in my groups but it's not clear that it's a bool since the input is a slider. Then I try to annotate this in the input name, which of course usually becomes too long to display. $\endgroup$
    – Mentalist
    Feb 10, 2022 at 8:31
  • 1
    $\begingroup$ @Mentalist You are right, neither boolean nor int types are supported in the shader editor. They may be in the future, seeing as how some geometry nodes improvements tend to propagate to the other node editors. Currently the only supported types are : shader, color, float and vector. $\endgroup$
    – Gorgious
    Feb 10, 2022 at 8:44

You must log in to answer this question.

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