4
$\begingroup$

I need a slot to connect multiple links. In the API is an attribute of links to the type of collections:

links = self.inputs ['ListAttrs']. links

for link in links: ...

How can I connect several links in the input node?

$\endgroup$
1
3
$\begingroup$

Links are created using node_tree.links.new:

new(input, output, verify_limits=True)

Add a node link to this node tree

Parameters:

  • input (NodeSocket, (never None)) – The input socket
  • output (NodeSocket, (never None)) – The output socket
  • verify_limits (boolean, (optional)) – Verify Limits, Remove existing links if connection limit is exceeded

Returns: New node link
Return type: NodeLink

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.