Is there a way to hide output node sockets that have nothing plugged into them?
This would be really useful, for instance when I am using the light path (or any other input node) and I am only using one output and the other 9 are just wasting space.
Is there a way to hide output node sockets that have nothing plugged into them?
This would be really useful, for instance when I am using the light path (or any other input node) and I am only using one output and the other 9 are just wasting space.
Yes, this can be done by pressing ⎈ CtrlH:

This can also be accomplished with some simple Python code.
bpy.types.NodeSocket([bpy_struct])
Use the Hide attribute, which has a value of false by default.
Visit the full documentation here.
H will turn any node into a capsule. This is perfect if you don't plan on editing the particular node any more. From there you can grab the two little strikes in the right side of the capsule and shrink it more!
Just don't lose it's name!

You can even condense large nodes like light path, just make sure something is connected. Shrink the large node with Ctrl > H and then click the little arrow in the top left or press H.
