12
$\begingroup$

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.

$\endgroup$
1
  • $\begingroup$ 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. $\endgroup$
    – PGmath
    Jan 10, 2015 at 2:25

3 Answers 3

19
$\begingroup$

Yes, this can be done by pressing ⎈ CtrlH:

enter image description here

$\endgroup$
6
  • $\begingroup$ Or even more effectively with plain ol H. $\endgroup$
    – ruckus
    Jan 10, 2015 at 4:50
  • $\begingroup$ @VinceScalia Indeed, however with H you lose the labels of the sockets. $\endgroup$
    – gandalf3
    Jan 10, 2015 at 7:30
  • 1
    $\begingroup$ Also just plain H does not hide the actual sockets as the OP asked. $\endgroup$
    – J Sargent
    Jan 10, 2015 at 15:07
  • $\begingroup$ It shrinks way small though. $\endgroup$
    – ruckus
    Jan 10, 2015 at 16:07
  • $\begingroup$ 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. $\endgroup$
    – PGmath
    Jan 10, 2015 at 16:39
2
$\begingroup$

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.

$\endgroup$
2
  • $\begingroup$ 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. $\endgroup$
    – PGmath
    Jan 10, 2015 at 2:50
  • $\begingroup$ I haven't been able to uncover that, if I do I will update my answer. $\endgroup$
    – J Sargent
    Jan 10, 2015 at 2:51
1
$\begingroup$

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

$\endgroup$
2
  • $\begingroup$ 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. $\endgroup$
    – PGmath
    Jan 10, 2015 at 16:37
  • $\begingroup$ @PGmath see the edit. $\endgroup$
    – ruckus
    Jan 10, 2015 at 16:42

You must log in to answer this question.

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