I was wondering how you could convert a value socket to colour and vice-versa. I find sometimes Roughness controlled by a greyscale which I don’t like vs values. The easy way is removing the socket and plugin it again onto a new one which retains the Roughness value.
For now, there’s no way to do it. As soon as the socket is created, you cannot change it (just delete it and create a new one).
With python nodes you have more control, but still happens the same.
When you create a socket, you don’t create a basic socket and set its type… Instead, you create a socket of that type, that is unmutable, and stays the same until it is destroyed.
What it’s possible to change it’s the name and the min/default/max values.
Awesome thanks for the explanation.