12

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.

PGmath
  • 25,106
  • 17
  • 103
  • 199
  • 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 02:25

3 Answers3

19

Yes, this can be done by pressing ⎈ CtrlH:

enter image description here

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133
2

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.

J Sargent
  • 19,269
  • 9
  • 79
  • 131
  • 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 02:50
  • I haven't been able to uncover that, if I do I will update my answer. – J Sargent Jan 10 '15 at 02:51
1

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!

enter image description here

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.

enter image description here

ruckus
  • 7,633
  • 26
  • 56
  • 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. – ruckus Jan 10 '15 at 16:42