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?
-
$\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$– Marty FoutsJan 17 at 16:00
-
$\begingroup$ And how did you add that socket? $\endgroup$– Markus von BroadyJan 17 at 16:30
-
1$\begingroup$ @MarkusvonBroady node = bpy.data.scenes["HDRI solely"].node_tree.nodes.new('CompositorNodeMath') node.inputs.new("NodeSocketFloat","Value") $\endgroup$– Vitalii SadovshikovJan 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$– MentalistMar 18 at 15:03
1 Answer
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.