5
$\begingroup$

I have added a new input socket for the Math node but it doesn't take it into consideration (it calculates merely the two default input sockets). Is it possible at all to force the Math node to take into account a supplementary socket? enter image description here

$\endgroup$
4
  • $\begingroup$ You can add the socket, which I think is a bug, but it doesn't connect internally. It would take a significant rewrite of the math node to allow such a thing. $\endgroup$ Jan 17 at 16:00
  • $\begingroup$ And how did you add that socket? $\endgroup$ Jan 17 at 16:30
  • 1
    $\begingroup$ @MarkusvonBroady node = bpy.data.scenes["HDRI solely"].node_tree.nodes.new('CompositorNodeMath') node.inputs.new("NodeSocketFloat","Value") $\endgroup$ Jan 17 at 16:57
  • $\begingroup$ 🤣 It's hilarious to me that you brute-forced an extra input socket onto a node! Then again, it's also perfectly reasonable to want that. Maybe submit a feature request to the developers instead? Certain operations (like Add) could be more useful if extendable by the user. $\endgroup$
    – Mentalist
    Mar 18 at 15:03

1 Answer 1

7
$\begingroup$

No. Even if it’s technically possible, you shouldn’t go around modifying nodes that don’t belong to you—they are written with a specific set of sockets and properties in mind, and they will not magically adapt to some other configuration.

If you want to add three values, you will have to use two Add nodes. If you really want a three-socket Add node, you can wrap two Add nodes in a node group.

$\endgroup$
1
  • $\begingroup$ Hmm, probably you are right $\endgroup$ Jan 17 at 17:03

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.