6
$\begingroup$

Here is a video proposal :

Video proposal, blender, automate node connections by pairs

Tell me what you think

$\endgroup$
9
  • 1
    $\begingroup$ I don't think it's possible to batch connect them by pairs.. Especially if inputs and outputs are of different types (yellow - 3 values for color and white - 1 value). You could link 2 of them and duplicate them after that if that's somehow eases the process.. or select them by 2 and press F.. or Ctrl+Shift clicking them to link to Viewer and grab another Mix on top of appeared link. $\endgroup$
    – Mr Zak
    Commented Nov 27, 2016 at 23:35
  • $\begingroup$ Ok, I edited the question, I actually want to connect inputs and outputs of the same type. The idea is to connect a big number of nodes (several hundreds or even a thousand if my computer can handle it) $\endgroup$ Commented Nov 28, 2016 at 0:00
  • $\begingroup$ The "Detach links" function is different, it's for disconnecting a node and, if it had an input and output of the same type both connected, connect the adjacent nodes together like this: i.imgur.com/rN6eYRX.png (before and after). Typically you just use the shortcut Alt-D, which does the same thing but also grabs the node and lets you move it out the way. $\endgroup$
    – Greg Zaal
    Commented Nov 29, 2016 at 16:12
  • $\begingroup$ Yeah I actually figured it out yesterday, we discussed about making a clearer description here : developer.blender.org/… I removed that from my question now. $\endgroup$ Commented Dec 1, 2016 at 10:53
  • $\begingroup$ I've got an idea for a simple workaround that would just require the ability to switch type (Shift+S) to a node group, but currently "Group" doesn't appear. Would that be hard to add ? $\endgroup$ Commented Dec 4, 2016 at 15:30

2 Answers 2

1
$\begingroup$

Partial solution (adding reroutes to all unused inputs and replacing them) :

Blender, add reroutes to all nodes inputs

If you prefer to read or didn't understand this rushed video :

So you have a bunch of nodes and you want to add reroutes to their inputs

  1. add any node (doesn't matter which one since you'll delete it later)
  2. move it on the left of your bunch of nodes
  3. select your bunch of nodes and the new lonely one which you set as the active one
  4. press K (with Node Wrangler enabled) to connect the lonely node to the bunch of nodes.
  5. select and group the entire node tree except for the new lonely node which stays outside
  6. in the group, Shift + left-click drag on the group input links to add reroutes on them
  7. Tab to get out of the group
  8. Alt+G to ungroup it
  9. delete the lonely node you added previously
  10. reorder your reroutes properly if some are not in the right place
  11. Shift+= to arrange them perfectly

Voilà. Now you can replace those reroutes by any node with Shift+S. And if you need them to have specific parameters, don't forget Right-click > "copy to selected" to apply your changes from the active node to all the selected ones.

$\endgroup$
-1
$\begingroup$

I believe if you select the nodes and hit F would connect them. I do not know what would happen if you connect with all the boxes selected.

$\endgroup$
5
  • $\begingroup$ I tried F but it does a big mess $\endgroup$ Commented Nov 28, 2016 at 8:05
  • $\begingroup$ "F" will try to connect them sequentially if they are all in a single row, like this: i.imgur.com/L3yvUgg.png $\endgroup$
    – Greg Zaal
    Commented Nov 29, 2016 at 16:14
  • $\begingroup$ If you use "F" and then shift+D so you at least do a parallel work. $\endgroup$ Commented Dec 1, 2016 at 11:58
  • $\begingroup$ I can't use shift+D because I need to do this on nodes that already have other connections $\endgroup$ Commented Dec 2, 2016 at 1:22
  • $\begingroup$ I edited the question with a video proposal to make it clearer. $\endgroup$ Commented Dec 5, 2016 at 4:22

You must log in to answer this question.

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