I have two
class SockA(NodeSocket) and
Now when I define a
Node class in a custom
NodeTree with both A and B inputs and outputs, I can create links between A and B sockets.
I had instead expected, that it would only be possible, to connect sockets of the same type (or different socket types that define their compatibility somehow).
How can a restriction like this on the linkability of sockets be achieved?
Note: I have looked through the source of animation_nodes for some time. it seems to define this restriction with variables on the sockets like this:
dataType = "Color" allowedInputTypes = ["Color"]
However, by checking the source for these variable names, I could not find any place where this would be enforced by the AN code, so I am left puzzled.