# How can I hide unused node sockets?

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.

• I am pretty sure there is a way to do this (I think I have seen people on this site doing it). But I can't remember how and I figure some other people may benefit from this if I ask the question here. – PGmath Jan 10 '15 at 2:25

Yes, this can be done by pressing ⎈ CtrlH:

• Or even more effectively with plain ol H. – Scalia Jan 10 '15 at 4:50
• @VinceScalia Indeed, however with H you lose the labels of the sockets. – gandalf3 Jan 10 '15 at 7:30
• Also just plain H does not hide the actual sockets as the OP asked. – VRM Jan 10 '15 at 15:07
• It shrinks way small though. – Scalia Jan 10 '15 at 16:07
• This is exactly what I was looking for, thanks! @VinceScalia Only if it doesn't have many sockets, with the input nodes, H doesn't make it much smaller. – PGmath Jan 10 '15 at 16:39

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.

• Thanks, but I am pretty sure I saw someone (I think it was @Gandalf3) mention in a comment somewhere a way to do it without scripting. – PGmath Jan 10 '15 at 2:50
• I haven't been able to uncover that, if I do I will update my answer. – VRM Jan 10 '15 at 2:51

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.

• You can also click the arrow at the top left of the node to do this. But the problem is this doesn't hide unused sockets. If you shrink a light path node it doesn't get much smaller since it still has to show all 10 sockets. – PGmath Jan 10 '15 at 16:37
• @PGmath see the edit. – Scalia Jan 10 '15 at 16:42